Sha256: cf047b4c8694d4e5a9bba95219b90a0f381b80889c5091d2d75ca4add7e17216

Contents?: true

Size: 359 Bytes

Versions: 26

Compression:

Stored size: 359 Bytes

Contents

Rollbar.configure do |config|
  # Fetch the access token from the environment.
  config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']

  # Only use Rollbar in production when there's a token configured.
  unless config.access_token and Rails.env.production?
    config.enabled = false
  end

  # Enable delayed reporting (using Sidekiq)
  config.use_sidekiq
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
disco_app-0.9.6 lib/generators/disco_app/templates/initializers/rollbar.rb
disco_app-0.9.7 lib/generators/disco_app/templates/initializers/rollbar.rb
disco_app-0.9.8 lib/generators/disco_app/templates/initializers/rollbar.rb
disco_app-0.9.9 lib/generators/disco_app/templates/initializers/rollbar.rb
disco_app-0.9.10 lib/generators/disco_app/templates/initializers/rollbar.rb
disco_app-0.9.11 lib/generators/disco_app/templates/initializers/rollbar.rb