lib/mongo/operation/write/drop_index.rb in mongo-2.1.0.beta vs lib/mongo/operation/write/drop_index.rb in mongo-2.1.0.rc0

- old
+ new

@@ -33,11 +33,11 @@ # option spec :coll_name [ String ] The name of the collection. # option spec :index_name [ String ] The name of the index. # # @since 2.0.0 class DropIndex - include Executable + include WriteCommandEnabled include Specifiable # Execute the drop index operation. # # @example Execute the operation. @@ -52,11 +52,11 @@ execute_write_command(context) end private - def execute_write_command(context) - Result.new(Command::DropIndex.new(spec).execute(context)).validate! + def write_command_op + Command::DropIndex.new(spec) end end end end end