class ActionDispatch::ShowExceptions

Private Instance Methods

render_exception(env, exception)
Also aliased as: template
render_exception_with_template(env, exception) click to toggle source
# File lib/patch/show_exceptions.rb, line 5
def render_exception_with_template(env, exception)
  env = env.env if env.is_a?(ActionDispatch::Request) # Rails 5 passes in the whole request object
  if(RailsExceptionHandler.configuration.activate?)
    RailsExceptionHandler::Handler.new(env, exception).handle_exception
  else
    raise exception
  end
end
Also aliased as: render_exception
template(env, exception)
Alias for: render_exception