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