Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
Only initialize Rollbar when production
config/initializers/rollbar.rb | 2 +-
diff --git a/config/initializers/rollbar.rb b/config/initializers/rollbar.rb index 79bbd6824a8fd5a6c9b264f4c19a85a9d0489ec6..da02f5cf6e7c4a49e8b7107bcb72e84f35ec61d6 100644 --- a/config/initializers/rollbar.rb +++ b/config/initializers/rollbar.rb @@ -1,4 +1,4 @@ -if ENV['ROLLBAR_TOKEN'].present? +if Rails.env.production? && ENV['ROLLBAR_TOKEN'].present? Rollbar.configure do |config| config.access_token = ENV['ROLLBAR_TOKEN']