Module: MongoMapper::Plugins::Clone::InstanceMethods
- Defined in:
- lib/mongo_mapper/plugins/clone.rb
Instance Method Summary collapse
Instance Method Details
#clone ⇒ Object
6 7 8 9 10 |
# File 'lib/mongo_mapper/plugins/clone.rb', line 6 def clone clone_attributes = self.attributes clone_attributes.delete("_id") self.class.new(clone_attributes) end |