Sha256: 688dd73ea2cf564db53014dffe14ce6e0f2a9f975aa5977f81b6ef82cb72a212

Contents?: true

Size: 960 Bytes

Versions: 41

Compression:

Stored size: 960 Bytes

Contents

require 'exception_notification/rails'
require 'exception_notification/sidekiq'

ExceptionNotification.configure do |config|
  # Ignore additional exception types.
  # ActiveRecord::RecordNotFound, AbstractController::ActionNotFound and ActionController::RoutingError are already added.
  # config.ignored_exceptions += %w{ActionView::TemplateError CustomError}

  # Adds a condition to decide when an exception must be ignored or not.
  # The ignore_if method can be invoked multiple times to add extra conditions.
  config.ignore_if do |exception, options|
    not Rails.env.production?
  end

  # Notifiers =================================================================

  # Email notifier sends notifications by email.
  config.add_notifier :email, {
      :email_prefix         => ENV['EXCEPTION_NOTIFICATION_EMAIL_PREFIX'],
      :sender_address       => ENV['EXCEPTION_NOTIFICATION_SENDER'],
      :exception_recipients => ENV['ADMIN_EMAIL']
  }
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
railman-1.0.6 templates/rails_app/config/initializers/exception_notification.rb
railman-1.0.5 templates/rails_app/config/initializers/exception_notification.rb
railman-1.0.4 templates/rails_app/config/initializers/exception_notification.rb
railman-1.0.3 templates/rails_app/config/initializers/exception_notification.rb
railman-1.0.2 templates/rails_app/config/initializers/exception_notification.rb
railman-1.0.1 templates/rails_app/config/initializers/exception_notification.rb
railman-1.0.0 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.20 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.19 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.18 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.17 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.16 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.15 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.14 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.13 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.12 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.11 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.10 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.9 templates/rails_app/config/initializers/exception_notification.rb
railman-0.6.8 templates/rails_app/config/initializers/exception_notification.rb