Class: Mongoid::Cursor

Inherits:
Object
  • Object
show all
Defined in:
lib/tengine/core/mongoid_fix.rb

Instance Method Summary collapse

Instance Method Details

#eachObject



12
13
14
15
16
17
18
# File 'lib/tengine/core/mongoid_fix.rb', line 12

def each
  retry_on_connection_failure do
    while document = cursor.next
      yield Mongoid::Factory.from_db(klass, document)
    end
  end
end