Files
fizzy/app/models/entropy.rb
T
David Heinemeier Hansson 966aa51a37 Get rid of unnecessary touch jobs
touch_all on 10K cards took 6ms in testing
2025-11-02 14:15:53 +01:00

12 lines
212 B
Ruby

class Entropy < ApplicationRecord
belongs_to :container, polymorphic: true
after_commit -> { container.cards.touch_all }
class << self
def default
Account.sole.default_entropy
end
end
end