Module: Mongoid::Extensions::Object::DeepCopy
- Included in:
- Object
- Defined in:
- lib/mongoid/extensions/object/deep_copy.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#_deep_copy ⇒ Object
Make a deep copy of the object.
Instance Method Details
#_deep_copy ⇒ Object
Make a deep copy of the object.
15 16 17 |
# File 'lib/mongoid/extensions/object/deep_copy.rb', line 15 def _deep_copy duplicable? ? dup : self end |