Created
October 26, 2015 19:43
-
-
Save kany/df06b31e6de191f4a02c to your computer and use it in GitHub Desktop.
Test Airbrake From Rails Development Environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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