module RailsCallbackLog::CallTemplateExtension
In rails 5.1, we extend `CallTemplate`.
Public Instance Methods
expand(target, value, block)
click to toggle source
Rails 5.1 and above call `expand` to get a reference to the object and method of the callback to execute. If the callback was a proc then @override_block will be set. If the callback was an object then @override_target will be set. If the callback was a symbol method name then @method_name will be set.
Calls superclass method
# File lib/rails-callback_log.rb, line 40 def expand(target, value, block) ::RailsCallbackLog.log(@override_block || @override_target || @method_name) super(target, value, block) end