Sha256: 05e091e497bc7e600697f471591e01b9a49dce0cb3e996c4999248206eb92c70
Contents?: true
Size: 416 Bytes
Versions: 3
Compression:
Stored size: 416 Bytes
Contents
module RailsCustomErrorPages class ErrorsController < ApplicationController layout false def show @exception = env['action_dispatch.exception'] @status_code = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code @rescue_response = ActionDispatch::ExceptionWrapper.rescue_responses[@exception.class.name] render :show, status: @status_code end end end
Version data entries
3 entries across 3 versions & 1 rubygems