Method: Mongoid::Persistence::Operations.insert
- Defined in:
- lib/mongoid/persistence/operations.rb
.insert(doc, options = {}) ⇒ Operations
Get the appropriate insertion operation based on the document.
190 191 192 |
# File 'lib/mongoid/persistence/operations.rb', line 190 def insert(doc, = {}) (doc. ? Embedded::Insert : Insert).new(doc, ) end |