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



6
7
8
9
10
# File 'lib/alchemy/error_tracking/airbrake_handler.rb', line 6

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

  notify_airbrake(exception)
end