Flowdock
method

check_conditionals

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveSupport::Callbacks::Callback
check_conditionals(conditionals) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/callbacks.rb, line 355
          def check_conditionals(conditionals)
            return EMPTY_ARRAY if conditionals.blank?

            conditionals = Array(conditionals)
            if conditionals.any? { |c| c.is_a?(String) }
              raise ArgumentError,                 Passing string to be evaluated in :if and :unless conditional                options is not supported. Pass a symbol for an instance method,                or a lambda, proc or block, instead..squish
            end

            conditionals.freeze
          end
Register or log in to add new notes.