Class: RailsExceptionHandler::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_exception_handler/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#environmentsObject

Returns the value of attribute environments.



2
3
4
# File 'lib/rails_exception_handler/configuration.rb', line 2

def environments
  @environments
end

#fallback_layoutObject

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

#filtersObject

Returns the value of attribute filters.



2
3
4
# File 'lib/rails_exception_handler/configuration.rb', line 2

def filters
  @filters
end

#response_mappingObject

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

#responsesObject

Returns the value of attribute responses.



2
3
4
# File 'lib/rails_exception_handler/configuration.rb', line 2

def responses
  @responses
end

#storage_strategiesObject

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_infoObject

Returns the value of attribute store_user_info.



2
3
4
# File 'lib/rails_exception_handler/configuration.rb', line 2

def 
  @store_user_info
end