Class: Dynamoid::Middleware::IdentityMap
- Inherits:
-
Object
- Object
- Dynamoid::Middleware::IdentityMap
- Defined in:
- lib/dynamoid/middleware/identity_map.rb
Instance Method Summary (collapse)
- - (Object) call(env)
-
- (IdentityMap) initialize(app)
constructor
A new instance of IdentityMap.
Constructor Details
- (IdentityMap) initialize(app)
A new instance of IdentityMap
4 5 6 |
# File 'lib/dynamoid/middleware/identity_map.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
- (Object) call(env)
8 9 10 11 12 13 |
# File 'lib/dynamoid/middleware/identity_map.rb', line 8 def call(env) Dynamoid::IdentityMap.clear @app.call(env) ensure Dynamoid::IdentityMap.clear end |