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
4 5 6 |
# File 'lib/money_column/active_record_hooks.rb', line 4 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize_dup ⇒ Object
13 14 15 16 |
# File 'lib/money_column/active_record_hooks.rb', line 13 def initialize_dup(*) @money_column_cache = {} super end |
#reload ⇒ Object
8 9 10 11 |
# File 'lib/money_column/active_record_hooks.rb', line 8 def reload(*) clear_money_column_cache if persisted? super end |