From 99de4983bae7d64526c61c0c5a6480cb0522b437 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Tue, 23 Nov 2010 02:56:23 -0800 Subject: [PATCH] Added the condition to enable ExceptionNotifier only when running in production to README --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index c5f355c1..cddf66bc 100644 --- a/README +++ b/README @@ -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" }, - :exception_recipients => %w{exceptions@example.com} + :exception_recipients => %w{exceptions@example.com} if Rails.env.production? == Customization