From 032cf6925797fdb61c7fedcee61bcb6fc2dd4e2f Mon Sep 17 00:00:00 2001 From: Philip Hale Date: Sat, 24 Aug 2013 19:53:52 +0100 Subject: [PATCH] [#13] Don't monitor exceptions in development or test Only production and staging environments. --- config/initializers/rollbar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/rollbar.rb b/config/initializers/rollbar.rb index 0553ab52..84a5ccf9 100644 --- a/config/initializers/rollbar.rb +++ b/config/initializers/rollbar.rb @@ -5,7 +5,7 @@ # Without configuration, Rollbar is enabled by in all environments. # To disable in specific environments, set config.enabled=false. # Here we'll disable in 'test': - if Rails.env.test? + if Rails.env.test? || Rails.env.development? config.enabled = false end