Skip to content

Instantly share code, notes, and snippets.

@kany
Created October 26, 2015 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kany/df06b31e6de191f4a02c to your computer and use it in GitHub Desktop.
Save kany/df06b31e6de191f4a02c to your computer and use it in GitHub Desktop.
Test Airbrake From Rails Development Environment
# Add 'config.development_environments = []' to config/initializers/airbrake.rb
Airbrake.configure do |config|
config.api_key = "1234"
config.environment_name = AppConfig.environment if AppConfig.environment
config.secure = true
config.development_environments = []
end
# Test it out in the console
1) rails console
2) Airbrake.notify :error_class => "Test Class From Frank Kany", :error_message => "Test Message From Frank Kany", :parameters => {:result => 'test params from frank kany'}
=> "1234"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment