Sha256: 84f1553477e3889b507693d82ea66054044d4ea19031fec7dfb415ed46e5f2a5
Contents?: true
Size: 708 Bytes
Versions: 7
Compression:
Stored size: 708 Bytes
Contents
require "rambulance/version" require "rambulance/railtie" require "rambulance/engine" require "rambulance/test_helper" module Rambulance # List of custom pairs of exception/corresponding http status. mattr_reader :rescue_responses @@rescue_responses = {} # The name of the layout file for the error pages. mattr_accessor :layout_name @@layout_name = "application" # The directory name to organize error page templates. mattr_accessor :view_path @@view_path = "errors" def self.rescue_responses=(rescue_responses) @@rescue_responses = rescue_responses ActionDispatch::ExceptionWrapper.rescue_responses.merge!(rescue_responses) end def self.setup yield self end end
Version data entries
7 entries across 7 versions & 1 rubygems