Skip to content

Instantly share code, notes, and snippets.

@sfilatov
Created July 27, 2011 12:36
Show Gist options
  • Save sfilatov/1109269 to your computer and use it in GitHub Desktop.
Save sfilatov/1109269 to your computer and use it in GitHub Desktop.
Migrate from Hoptoad to Airbrake
# Rails 2.3.5 - 2.3.11 environment settings (config/environment.rb)
config.gem 'airbrake', :version => '2.4.11', :require => "hoptoad_notifier"
# Rails 3 - bundler Gemfile(config/Gemfile)
gem 'airbrake', '2.4.11', require => "hoptoad_notifier"
# In Hoptoad initializer (config/hoptoad.rb)
HoptoadNotifier.configure do |config|
config.api_key = '<api key>'
config.host = 'airbrakeapp.com'
config.user_information = "Airbrake Error {{error_id}}"
config.notifier_url = "http://airbrakeapp.com"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment