Flowdock
method

check_conditionals

Importance_0
v6.0.0 - Show latest stable - 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 356
          def check_conditionals(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
          end
Register or log in to add new notes.