class Dynamoid::Middleware::IdentityMap

Public Class Methods

new(app) click to toggle source
# File lib/dynamoid/middleware/identity_map.rb, line 4
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/dynamoid/middleware/identity_map.rb, line 8
def call(env)
  Dynamoid::IdentityMap.clear
  @app.call(env)
ensure
  Dynamoid::IdentityMap.clear
end