method

evaluate_condition

rails latest stable - Class: ActiveRecord::Validations::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.0.3) is shown here.

evaluate_condition(condition, record)
public

Determine from the given condition (whether a block, procedure, method or string) whether or not to validate the record. See #validates_each.