Flowdock
method

validate_each

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: AbsenceValidator
validate_each(record, attribute, association_or_value) public

No documentation

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

Hide source
# File activerecord/lib/active_record/validations/absence.rb, line 6
      def validate_each(record, attribute, association_or_value)
        if record.class._reflect_on_association(attribute)
          association_or_value = Array.wrap(association_or_value).reject(&:marked_for_destruction?)
        end
        super
      end
Register or log in to add new notes.