class Gabrake::Middleware
Public Class Methods
new(app)
click to toggle source
# File lib/gabrake/middleware.rb, line 3 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/gabrake/middleware.rb, line 7 def call(env) begin @app.call(env) rescue ::Exception => exception Gabrake::Notifier.deliver(exception, env: env) unless exception.is_a?(ActionController::RoutingError) raise exception end end