Parent

Methods

Files

Class/Module Index [+]

Quicksearch

ActiveRecord::IdentityMap::Middleware

Public Class Methods

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

Public Instance Methods

call(env) click to toggle source
# File lib/active_record/identity_map.rb, line 154
def call(env)
  enabled = IdentityMap.enabled
  IdentityMap.enabled = true
  status, headers, body = @app.call(env)
  [status, headers, Body.new(body, enabled)]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.