class AttrDeprecated::AirbrakeNotifier
Public Class Methods
new(target)
click to toggle source
# File lib/notifiers/airbrake_notifier.rb, line 3 def initialize(target) @target = target end
Public Instance Methods
notify_airbrake(attribute)
click to toggle source
# File lib/notifiers/airbrake_notifier.rb, line 7 def notify_airbrake(attribute) if defined?(Airbrake) Airbrake.notify Exception.new "WARNING: Called deprecated attribute for #{klass.name}: #{attrs.join(', ')}\n" + backtrace.map { |trace| "\t#{trace}" }.join("\n") end rescue end