Class: Memolog::RailsMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/memolog/rails_middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ RailsMiddleware

Returns a new instance of RailsMiddleware.



4
5
6
# File 'lib/memolog/rails_middleware.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
# File 'lib/memolog/rails_middleware.rb', line 8

def call(env)
  Memolog.run { @app.call(env) }
end