File: environment.rb

package info (click to toggle)
ruby-exception-notification 4.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: javascript: 7,680; ruby: 1,130; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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)
  }

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