instance method
should_run_callback?
Ruby on Rails 2.2.3
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)
if options[:if]
evaluate_method(options[:if], *args)
elsif options[:unless]
!evaluate_method(options[:unless], *args)
else
true
end
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