Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Created March 2, 2009 17:28
Show Gist options
  • Save codeprimate/72874 to your computer and use it in GitHub Desktop.
Save codeprimate/72874 to your computer and use it in GitHub Desktop.
# config/initializers/exception_notification.rb
ExceptionNotifier.exception_recipients = %w(me@example.com)
ExceptionNotifier.sender_address = %("Application Error" <notifier@example.com>)
ExceptionNotifier.email_prefix = "[APPLICATION_NAME] "
# For older versions of Rails 2.x
ExceptionNotifier.class_eval do
remove_method :template_root
ExceptionNotifier.template_root = "#{RAILS_ROOT}/vendor/plugins/exception_notification/lib/../views"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment