Class: TestTrack::MisconfigurationNotifier::Airbrake
- Inherits:
-
Object
- Object
- TestTrack::MisconfigurationNotifier::Airbrake
- Defined in:
- app/models/test_track/misconfiguration_notifier.rb
Instance Method Summary collapse
Instance Method Details
#notify(msg) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'app/models/test_track/misconfiguration_notifier.rb', line 23 def notify(msg) raise "Aibrake was configured but not found" unless defined?(::Airbrake) if ::Airbrake.respond_to?(:notify_or_ignore) ::Airbrake.notify_or_ignore(StandardError.new, error_message: msg) else ::Airbrake.notify(StandardError.new, error_message: msg) end end |