module Rexception
Constants
- VERSION
Attributes
errors_dir[RW]
Directory name where you place error pages.
@return [String]
layout[RW]
Layout file name to use for rendering error page.
@return [String]
Public Class Methods
configure() { |self| ... }
click to toggle source
Configuring module attributes by initializer.
@yield Rexception
# File lib/rexception.rb, line 28 def configure yield self end
rescue_responses=(rescue_responses)
click to toggle source
Pairs of custom exceptions and statuses.
@return [Hash{String => Symbol}]
# File lib/rexception.rb, line 21 def rescue_responses=(rescue_responses) ActionDispatch::ExceptionWrapper.rescue_responses.merge!(rescue_responses) end