Files
fizzy/app/models/account/entropic.rb
T
2025-11-02 15:24:55 +01:00

11 lines
262 B
Ruby

module Account::Entropic
extend ActiveSupport::Concern
DEFAULT_ENTROPY_PERIOD = 30.days
included do
has_one :entropy, as: :container, dependent: :destroy
after_create -> { create_entropy!(auto_postpone_period: DEFAULT_ENTROPY_PERIOD) }
end
end