Sha256: 65372afde39dd3445372e5e7974cb2b0d382c069dd99bb144d98330c0649024a

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 Bytes

Contents

# Load the rails application
require File.expand_path('../application', __FILE__)

Dummy::Application.config.middleware.use ExceptionNotification::Rack,
  :email => {
    :email_prefix => "[Dummy ERROR] ",
    :sender_address => %{"Dummy Notifier" <dummynotifier@example.com>},
    :exception_recipients => %w{dummyexceptions@example.com},
    :email_headers => { "X-Custom-Header" => "foobar" },
    :sections => ['new_section', 'request', 'session', 'environment', 'backtrace'],
    :background_sections => %w(new_bkg_section backtrace data),
    :pre_callback => proc { |opts, notifier, backtrace, message, message_opts| message_opts[:pre_callback_called] = 1 },
    :post_callback => proc { |opts, notifier, backtrace, message, message_opts| message_opts[:post_callback_called] = 1 }
  }

# Initialize the rails application
Dummy::Application.initialize!

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
exception_notification-4.3.0 test/dummy/config/environment.rb
exception_notification-4.2.2 test/dummy/config/environment.rb
exception_notification-4.2.1 test/dummy/config/environment.rb
exception_notification-4.2.0 test/dummy/config/environment.rb
exception_notification-4.2.0.rc1 test/dummy/config/environment.rb
exception_notification_more_info-1.0.1 test/dummy/config/environment.rb
exception_notification_more_info-1.0.0 test/dummy/config/environment.rb
exception_notification-4.1.4 test/dummy/config/environment.rb
exception_notification-4.1.3 test/dummy/config/environment.rb