lib/mongo/protocol/get_more.rb in mongo-2.10.5 vs lib/mongo/protocol/get_more.rb in mongo-2.11.0.rc0

- old
+ new

@@ -108,11 +108,10 @@ class Upconverter # The get more constant. # # @since 2.2.0 - # @deprecated GET_MORE = 'getMore'.freeze # @return [ String ] collection The name of the collection. attr_reader :collection @@ -147,10 +146,10 @@ # @return [ BSON::Document ] The upconverted command. # # @since 2.1.0 def command document = BSON::Document.new - document.store('getMore', BSON::Int64.new(cursor_id)) + document.store(GET_MORE, cursor_id) document.store(Message::BATCH_SIZE, number_to_return) document.store(Message::COLLECTION, collection) document end end