Module: Ohm::IdentityMap::Macros
- Defined in:
- lib/ohm/identity_map.rb
Instance Method Summary collapse
Instance Method Details
#identity_map ⇒ Object
50 51 52 53 54 55 |
# File 'lib/ohm/identity_map.rb', line 50 def identity_map Thread.current[:_ohm_identity_map] = {} yield ensure Thread.current[:_ohm_identity_map] = nil end |