instance method should_run_callback?

Ruby on Rails 2.2.3

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)
          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

Type at least 2 characters to search.

↑↓ navigate · open · esc close