lib/rollbar.rb
# Configures the gem.
#
# Call on app startup to set the `access_token` (required) and other config params.
# In a Rails app, this is called by `config/initializers/rollbar.rb` which is generated
# with `rails generate rollbar access-token-here`
#
# @example
#   Rollbar.configure do |config|
#     config.access_token = 'abcdefg'
#   end
Configures the gem.
Call on app startup to set the `access_token` (required) and other config params.
In a Rails app, this is called by `config/initializers/rollbar.rb` which is generated
with `rails generate rollbar access-token-here`
Configures the gem . Call on app startup to set the ` access_token ` ( required ) and other config params . In a Rails app this is called by ` config / initializers / rollbar . rb ` which is generated with ` rails generate rollbar access - token - here `
def configure
      require_hooks
      if configuration.enabled.nil?
        configuration.enabled = true
      end
      yield(configuration)
    end
def configure require_hooks if configuration . enabled . nil? configuration . enabled = true end yield ( configuration ) end
Configures the gem.
Configures the gem .
# if configuration.enabled has not been set yet (is still 'nil'), set to true.
example
Rollbar.configure do |config| config.access_token = 'abcdefg' end
Rollbar . configure do |config| config . access_token = ' abcdefg ' end