Class: ROM::Mongo::Commands::Delete

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

Instance Method Summary collapse

Instance Method Details

#executeObject



31
32
33
34
35
# File 'lib/rom/mongo/commands.rb', line 31

def execute
  removed = target.to_a
  target.remove_all
  removed
end