Module: RailsCallbackLog::CallTemplateExtension
- Included in:
- ActiveSupport::Callbacks::CallTemplate
- Defined in:
- lib/rails-callback_log.rb
Overview
In rails 5.1, we extend ‘CallTemplate`.
Instance Method Summary collapse
-
#expand(target, value, block) ⇒ Object
Rails 5.1 and above call ‘expand` to get a reference to the object and method of the callback to execute.
Instance Method Details
#expand(target, value, block) ⇒ Object
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 then @method_name will be set.
40 41 42 43 44 |
# File 'lib/rails-callback_log.rb', line 40 def (target, value, block) ::RailsCallbackLog.log(@override_block || @override_target || @method_name) super(target, value, block) end |