lib/parliament/utils/config/initializers/airbrake.rb in parliament-utils-0.8.2 vs lib/parliament/utils/config/initializers/airbrake.rb in parliament-utils-0.8.3

- old
+ new

@@ -1,5 +1,5 @@ -if ENV['AIRBRAKE_PROJECT_ID'].present? && ENV['AIRBRAKE_PROJECT_KEY'].present? +if defined?(Airbrake) && ENV['AIRBRAKE_PROJECT_ID'].present? && ENV['AIRBRAKE_PROJECT_KEY'].present? # Airbrake is an online tool that provides robust exception tracking in your Rails # applications. In doing so, it allows you to easily review errors, tie an error # to an individual piece of code, and trace the cause back to recent # changes. Airbrake enables for easy categorization, searching, and prioritization # of exceptions so that when errors occur, your team can quickly determine the