instance method
should_run_callback?
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18 PrivateAvailable in: v2.2.3 v2.3.18
Signature
should_run_callback?(*args)
No documentation comment.
Parameters
-
argsrest
Source
# 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
Defined in activesupport/lib/active_support/callbacks.rb line 194
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Callbacks::Callback