class Mongoid::Cursor
Public Instance Methods
each() { |from_db| ... }
click to toggle source
github.com/mongoid/mongoid/pull/1609
# File lib/tengine/core/mongoid_fix.rb, line 11 def each retry_on_connection_failure do while document = cursor.next yield Mongoid::Factory.from_db(klass, document) end end end