Sha256: 38b9b308e9ddb4f4bc91f8ca7f421a033e00e34655e47da7f59fe7ef72851eed
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 Bytes
Contents
require 'rexception/version' require 'rexception/railtie' if defined?(Rails) module Rexception autoload :ExceptionsController, 'rexception/exceptions_controller' class << self # Layout file name to use for rendering error page. # # @return [String] attr_accessor :layout # Directory name where you place error pages. # # @return [String] attr_accessor :errors_dir # Pairs of custom exceptions and statuses. # # @return [Hash{String => Symbol}] def rescue_responses=(rescue_responses) ActionDispatch::ExceptionWrapper.rescue_responses.merge!(rescue_responses) end # Configuring module attributes by initializer. # # @yield Rexception def configure yield self end end end require 'rexception/config'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rexception-0.1.0 | lib/rexception.rb |