lib/mongo/operation/find/command.rb in mongo-2.7.2 vs lib/mongo/operation/find/command.rb in mongo-2.8.0.rc0

- old
+ new

@@ -24,25 +24,10 @@ class Command include Specifiable include Executable include Limited include ReadPreferenceSupported - - # Execute the operation. - # - # @example - # operation.execute(server) - # - # @param [ Mongo::Server ] server The server to send the operation to. - # - # @return [ Mongo::Operation::Find::Result ] The operation result. - # - # @since 2.5.2 - def execute(server) - result = Result.new(dispatch_message(server)) - process_result(result, server) - result.validate! - end + include PolymorphicResult private def message(server) Protocol::Query.new(db_name, Database::COMMAND, command(server), options(server))