Skip to content

Instantly share code, notes, and snippets.

@thbar
Forked from jondeandres/gist:e5a897b5a6394ae6bdbf
Last active August 29, 2015 14:15
Show Gist options
  • Save thbar/edef43dd335832a6918b to your computer and use it in GitHub Desktop.
Save thbar/edef43dd335832a6918b to your computer and use it in GitHub Desktop.
# config/environment.rb
require File.expand_path('../application', __FILE__)
require File.expand_path('../rollbar', __FILE__)
begin
Rails.application.initialize!
rescue Exception => e
Rollbar.error(e)
raise
end
# config/rollbar.rb
## Move config/initializers/rollbar.rb content to here. Just configure it as usual.
Rollbar.configure do |config|
config.access_token = 'your-access-token'
config.framework = 'Rails'
config.enabled = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment