Flowdock
method

validate_each

Importance_0
v5.1.7 - Show latest stable - 0 notes - Class: PresenceValidator
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/presence.rb, line 4
      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.