Method: MongoMapper::Plugins::IdentityMap::ClassMethods#find_many

Defined in:
lib/novelys_mongo_mapper/plugins/identity_map.rb

#find_many(options) ⇒ Object



42
43
44
45
46
47
# File 'lib/novelys_mongo_mapper/plugins/identity_map.rb', line 42

def find_many(options)
  criteria, finder_options = to_finder_options(options)
  super.tap do |documents|
    remove_documents_from_map(documents) if selecting_fields?(finder_options)
  end
end