class OpenStax::RescueFrom::Configuration
Attributes
app_name[RW]
contact_name[W]
html_error_template_layout_name[RW]
html_error_template_path[RW]
notify_background_exceptions[RW]
notify_background_proc[RW]
notify_exceptions[RW]
notify_proc[RW]
notify_rack_middleware[RW]
notify_rack_middleware_options[RW]
raise_background_exceptions[RW]
raise_exceptions[RW]
Public Class Methods
new()
click to toggle source
# File lib/openstax/rescue_from/configuration.rb, line 16 def initialize @raise_exceptions = ![false, 'false'].include?(ENV['RAISE_EXCEPTIONS']) @raise_background_exceptions = ![false, 'false'].include?( ENV['RAISE_BACKGROUND_EXCEPTIONS'] ) @app_name = ENV['APP_NAME'] @contact_name = ENV['EXCEPTION_CONTACT_NAME'] @notify_exceptions = true @notify_proc = ->(proxy, controller) {} @notify_background_exceptions = true @notify_background_proc = ->(proxy) {} @html_error_template_path = 'errors/any' @html_error_template_layout_name = 'application' end
Public Instance Methods
contact_name()
click to toggle source
# File lib/openstax/rescue_from/configuration.rb, line 12 def contact_name @contact_name || "us" end