Class: ROM::Mongo::Commands::Create

Inherits:
Commands::Create
  • Object
show all
Defined in:
lib/rom/mongo/commands.rb

Instance Method Summary collapse

Instance Method Details

#execute(document) ⇒ Object



9
10
11
12
# File 'lib/rom/mongo/commands.rb', line 9

def execute(document)
  collection.insert(document)
  [document]
end