class Rackprof::Middleware
Constants
- IGNORE_REQUESTS
Public Class Methods
new(app)
click to toggle source
# File lib/rackprof/middleware.rb, line 5 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/rackprof/middleware.rb, line 9 def call(env) if env['PATH_INFO'] !~ IGNORE_REQUESTS RequestNotify.instance.notify { @app.call(env) } else @app.call(env) end end