Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Condition to use ExceptionNotifier only in production #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ As of Rails 3 ExceptionNotifier is used as a rack middleware
Whatever::Application.config.middleware.use ExceptionNotifier,
:email_prefix => "[Whatever] ",
:sender_address => %{"notifier" <[email protected]>},
:exception_recipients => %w{[email protected]}
:exception_recipients => %w{[email protected]} if Rails.env.production?

== Customization

Expand Down