Module: MoneyColumn::ActiveRecordHooks
- Defined in:
- lib/money_column/active_record_hooks.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/money_column/active_record_hooks.rb', line 9 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize_dup ⇒ Object
18 19 20 21 |
# File 'lib/money_column/active_record_hooks.rb', line 18 def initialize_dup(*) @money_column_cache = {} super end |
#reload ⇒ Object
13 14 15 16 |
# File 'lib/money_column/active_record_hooks.rb', line 13 def reload(*) clear_money_column_cache if persisted? super end |