Module: MmPartialUpdate::Plugins::PartialUpdate::ClassMethods
- Defined in:
- lib/mm_partial_update/plugins/partial_update.rb
Instance Method Summary collapse
Instance Method Details
#inherited(descendant) ⇒ Object
15 16 17 18 19 |
# File 'lib/mm_partial_update/plugins/partial_update.rb', line 15 def inherited(descendant) descendant.instance_variable_set("@_persistence_strategy", self.persistence_strategy) super end |
#persistence_strategy(new_strategy = nil) ⇒ Object
21 22 23 24 |
# File 'lib/mm_partial_update/plugins/partial_update.rb', line 21 def persistence_strategy(new_strategy=nil) return @_persistence_strategy ||= nil unless new_strategy @_persistence_strategy = new_strategy end |