lib/spoom/deadcode/plugins/action_mailer.rb in spoom-1.3.2 vs lib/spoom/deadcode/plugins/action_mailer.rb in spoom-1.3.3
- old
+ new
@@ -5,15 +5,15 @@
module Deadcode
module Plugins
class ActionMailer < Base
extend T::Sig
- sig { override.params(indexer: Indexer, send: Send).void }
- def on_send(indexer, send)
+ sig { override.params(send: Send).void }
+ def on_send(send)
return unless send.recv.nil? && ActionPack::CALLBACKS.include?(send.name)
send.each_arg(Prism::SymbolNode) do |arg|
- indexer.reference_method(arg.unescaped, send.node)
+ @index.reference_method(arg.unescaped, send.location)
end
end
end
end
end