Sha256: 9320ba82dc61f57e5dcdff8e88d639ac3611524986dd799206cefb34a3b50224
Contents?: true
Size: 646 Bytes
Versions: 5
Compression:
Stored size: 646 Bytes
Contents
require "rambulance/version" require "rambulance/railtie" 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 directry 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rambulance-0.5.0 | lib/rambulance.rb |
rambulance-0.4.0 | lib/rambulance.rb |
rambulance-0.3.1 | lib/rambulance.rb |
rambulance-0.3.0 | lib/rambulance.rb |
rambulance-0.2.0 | lib/rambulance.rb |