method
should_run_callback?
v2.2.1 -
Show latest stable
- Class:
ActiveSupport::Callbacks::Callback
should_run_callback?(*args)private
No documentation available.
# File activesupport/lib/active_support/callbacks.rb, line 194
def should_run_callback?(*args)
if options[:if]
evaluate_method(options[:if], *args)
elsif options[:unless]
!evaluate_method(options[:unless], *args)
else
true
end
end