Method: Mongoid::Threaded#identity_map
- Defined in:
- lib/mongoid/threaded.rb
#identity_map ⇒ IdentityMap
Get the identity map off the current thread.
122 123 124 |
# File 'lib/mongoid/threaded.rb', line 122 def identity_map Thread.current[:"[mongoid]:identity-map"] ||= IdentityMap.new end |