Module: MongoMapper::Plugins::IdentityMap
- Defined in:
- lib/mongo_mapper/plugins/identity_map.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary
collapse
Class Method Details
8
9
10
|
# File 'lib/mongo_mapper/plugins/identity_map.rb', line 8
def self.clear
models.each { |m| m.identity_map.clear }
end
|
12
13
14
|
# File 'lib/mongo_mapper/plugins/identity_map.rb', line 12
def self.configure(model)
IdentityMap.models << model
end
|
4
5
6
|
# File 'lib/mongo_mapper/plugins/identity_map.rb', line 4
def self.models
@models ||= Set.new
end
|