class ActionDispatch::Rescue
def call(env)
def call(env) @app.call(env) rescue Exception => exception if rescuer = @rescuers[exception.class.name] env['action_dispatch.rescue.exception'] = exception rescuer.call(env) else raise exception end end
def call(env) @app.call(env) rescue Exception => exception if rescuer = @rescuers[exception.class.name] env['action_dispatch.rescue.exception'] = exception rescuer.call(env) else raise exception end end