Class: RailsExceptionHandler::Configuration
- Inherits:
-
Object
- Object
- RailsExceptionHandler::Configuration
- Defined in:
- lib/rails_exception_handler/configuration.rb
Instance Attribute Summary collapse
-
#environments ⇒ Object
Returns the value of attribute environments.
-
#fallback_layout ⇒ Object
Returns the value of attribute fallback_layout.
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#response_mapping ⇒ Object
Returns the value of attribute response_mapping.
-
#responses ⇒ Object
Returns the value of attribute responses.
-
#storage_strategies ⇒ Object
Returns the value of attribute storage_strategies.
-
#store_user_info ⇒ Object
Returns the value of attribute store_user_info.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
4 5 6 7 8 9 10 11 12 |
# File 'lib/rails_exception_handler/configuration.rb', line 4 def initialize @environments = [:production] @storage_strategies = [] @filters = [] @store_user_info = false @fallback_layout = 'application' @response_mapping = {} @responses = { :default => '<h1>Internal server error</h1><p>The application has encountered an unexpected issue.</p>' } end |
Instance Attribute Details
#environments ⇒ Object
Returns the value of attribute environments.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def environments @environments end |
#fallback_layout ⇒ Object
Returns the value of attribute fallback_layout.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def fallback_layout @fallback_layout end |
#filters ⇒ Object
Returns the value of attribute filters.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def filters @filters end |
#response_mapping ⇒ Object
Returns the value of attribute response_mapping.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def response_mapping @response_mapping end |
#responses ⇒ Object
Returns the value of attribute responses.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def responses @responses end |
#storage_strategies ⇒ Object
Returns the value of attribute storage_strategies.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def storage_strategies @storage_strategies end |
#store_user_info ⇒ Object
Returns the value of attribute store_user_info.
2 3 4 |
# File 'lib/rails_exception_handler/configuration.rb', line 2 def store_user_info @store_user_info end |