method
should_run_callback?
v2.3.8 -
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)
[options[:if]].flatten.compact.all? { |a| evaluate_method(a, *args) } &&
![options[:unless]].flatten.compact.any? { |a| evaluate_method(a, *args) }
end