Sha256: f73dea297a6afde81a7f07a2835a5e1ed94374b995e84a8ba895d80712965bc9

Contents?: true

Size: 784 Bytes

Versions: 4

Compression:

Stored size: 784 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 = "<%= @namespace %>"

  # 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 lib/generators/templates/errational_configuration.rb
errational-0.9.09 lib/generators/templates/errational_configuration.rb
errational-0.8.16 lib/generators/templates/errational_configuration.rb
errational-0.7.1 lib/generators/templates/errational_configuration.rb