class Croket::Rack
Public Class Methods
new(app)
click to toggle source
# File lib/croket/rack.rb, line 12 def initialize app @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/croket/rack.rb, line 16 def call env begin response = @app.call env rescue Exception => e notify_croket env, e raise e end if framework_exception = env["action_dispatch.exception"] notify_croket env, framework_exception end response end
Private Instance Methods
notify_croket(env, e)
click to toggle source
# File lib/croket/rack.rb, line 31 def notify_croket env, e Croket.notify e, env end