class ROM::Mongo::Commands::Update
Public Instance Methods
collection()
click to toggle source
# File lib/rom/mongo/commands.rb, line 24 def collection relation.dataset end
execute(attributes)
click to toggle source
# File lib/rom/mongo/commands.rb, line 28 def execute(attributes) collection.update_all('$set' => attributes) collection.to_a end