instance method should_run_callback?

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18 Private

Available in: v2.2.3 v2.3.18

Signature

should_run_callback?(*args)

No documentation comment.

Parameters

args rest
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close