Module: MongoMapper::EmbeddedDocument::InstanceMethods
- Defined in:
- lib/mongo_mapper/embedded_document.rb
Instance Method Summary collapse
Instance Method Details
#save(options = {}) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/mongo_mapper/embedded_document.rb', line 40 def save(={}) if result = _root_document.try(:save, ) @new = false end result end |
#save!(options = {}) ⇒ Object
47 48 49 50 51 52 |
# File 'lib/mongo_mapper/embedded_document.rb', line 47 def save!(={}) if result = _root_document.try(:save!, ) @new = false end result end |