class DataMapper::IdentityMaps
Public Class Methods
new(app, name = :default)
click to toggle source
# File lib/rack_datamapper/identity_maps.rb, line 3 def initialize(app, name = :default) @app = app @name = name.to_sym end
Public Instance Methods
call(env)
click to toggle source
# File lib/rack_datamapper/identity_maps.rb, line 8 def call(env) DataMapper.repository(@name) do @app.call(env) end end