Class: WarningSigns::RailsDeprecationCatcher

Inherits:
ActiveSupport::Subscriber
  • Object
show all
Defined in:
lib/warning_signs/rails_deprecation_catcher.rb

Instance Method Summary collapse

Instance Method Details

#deprecation(event) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/warning_signs/rails_deprecation_catcher.rb', line 5

def deprecation(event)
  Deprecation.new(
    event.payload[:message],
    source: "rails",
    backtrace: caller
  ).invoke
end