enable rollbar only in pre and pro envs

This commit is contained in:
rgarcia
2015-09-01 19:15:56 +02:00
parent c350dcfff4
commit e1d6319953

View File

@@ -5,8 +5,10 @@ Rollbar.configure do |config|
config.access_token = Rails.application.secrets.rollbar_server_token
# Here we'll disable in 'test':
if Rails.env.test?
# Here we'll disable all environments except 'production':
if Rails.env.preproduction? || Rails.env.production?
config.enabled = true
else
config.enabled = false
end