Class: Alchemy::ErrorTracking::AirbrakeHandler

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/alchemy/error_tracking/airbrake_handler.rb

Class Method Summary collapse

Class Method Details

.call(exception) ⇒ Object



8
9
10
11
12
# File 'lib/alchemy/error_tracking/airbrake_handler.rb', line 8

def self.call(exception)
  return if ["development", "test"].include?(Rails.env)

  Airbrake.notify(exception)
end