lib/mongo/operation/insert/legacy.rb in mongo-2.10.0 vs lib/mongo/operation/insert/legacy.rb in mongo-2.10.1
- old
+ new
@@ -26,26 +26,14 @@
class Legacy
include Specifiable
include Executable
include Idable
- # Execute the operation.
- #
- # @example
- # operation.execute(server)
- #
- # @param [ Mongo::Server ] server The server to send the operation to.
- #
- # @return [ Mongo::Operation::Insert::Result ] The operation result.
- #
- # @since 2.5.2
- def execute(server)
- result = Result.new(dispatch_message(server), @ids)
- process_result(result, server)
- result.validate!
- end
-
private
+
+ def get_result(server)
+ Result.new(dispatch_message(server), @ids)
+ end
def selector
send(IDENTIFIER).first
end