Skip to content

Commit

Permalink
Fix environment variable capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
nbudin committed Sep 26, 2023
1 parent c26cb9d commit d61bfb0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions config/initializers/rollbar.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
require 'rollbar/rails'
require "rollbar/rails"
Rollbar.configure do |config|
# Without configuration, Rollbar is enabled in all environments.
# To disable in specific environments, set config.enabled=false.
config.access_token = ENV['rollbar_access_token']

config.access_token = ENV["ROLLBAR_ACCESS_TOKEN"]

# Here we'll disable in 'test':
unless Rails.env.production?
config.enabled = false
end

config.enabled = false unless Rails.env.production?

# By default, Rollbar will try to call the `current_user` controller method
# to fetch the logged-in user object, and then call that object's `id`,
Expand Down

0 comments on commit d61bfb0

Please sign in to comment.