Class: ROM::Mongo::Commands::Update

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

Instance Method Summary collapse

Instance Method Details

#execute(attributes) ⇒ Object



19
20
21
22
# File 'lib/rom/mongo/commands.rb', line 19

def execute(attributes)
  collection.update_all('$set' => attributes)
  collection.to_a
end