class ROM::Mongo::Commands::Create
Public Instance Methods
collection()
click to toggle source
# File lib/rom/mongo/commands.rb, line 11 def collection relation.dataset end
execute(document)
click to toggle source
# File lib/rom/mongo/commands.rb, line 15 def execute(document) collection.insert(document) [document] end