Module: Sequel::Plugins::AttributeCallbacks::DelegatorDeepClone
- Defined in:
- lib/sequel/plugins/attribute_callbacks/rich_data_fixes.rb
Instance Method Summary collapse
-
#clone ⇒ Object
Delegator clone method doesn’t clone the delegated to object which makes it impossible for the Dirty plugin track changes.
Instance Method Details
#clone ⇒ Object
Delegator clone method doesn’t clone the delegated to object which makes it impossible for the Dirty plugin track changes
5 6 7 8 9 |
# File 'lib/sequel/plugins/attribute_callbacks/rich_data_fixes.rb', line 5 def clone c = super c.__setobj__ __getobj__.clone c end |