Sha256: 07f0ca3fdf1d116d8538be117f32e6d3a82ca35a043fb694661da9545e174a71

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

#TODO is this the best place for this line?
ActiveSupport::Dependencies.autoload_paths << "#{Rails.root}/lib/errational"

Errational.setup do |config|
  # Namespace for name of exception and error modules, based on the name given at install time.
  # Note, if changing, change the module names in lib/namespace_error.rb and lib/namespace_exception.rb,
  # , as well as the filenames
  config.namespace = "RailsApp"

  # The response code given for exceptions that are handled.
  config.error_response_code = 203

  # The partial to be used for exceptions handled as the result of xhr actions
  config.error_partial = '/errational/error_dialog'

  # The logger to be used for NamespaceException::Loggable exceptions and unexpected exceptions
  config.logger = Rails.logger
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
errational-0.12.04 test/rails_app/config/initializers/errational_configuration.rb
errational-0.9.09 test/rails_app/config/initializers/errational_configuration.rb
errational-0.8.16 test/rails_app/config/initializers/errational_configuration.rb
errational-0.7.1 test/tmp/config/initializers/errational_configuration.rb