method
define_conditional_callback
v4.0.2 -
Show latest stable
- Class:
ActiveSupport::Callbacks::Callback
define_conditional_callback()private
Compile around filters with conditions into proxy methods that contain the conditions.
For `set_callback :save, :around, :filter_name, if: :condition’:
def _conditional_callback_save_17 if condition filter_name do yield self end else yield self end end