1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Scott González 2017-01-10 18:22:52 -05:00
parent b292b76c2d
commit e0fee7a71f

View file

@ -141,8 +141,8 @@ module ActiveModel
end
# Performs validation on the supplied record. By default this will call
# +validates_each+ to determine validity therefore subclasses should
# override +validates_each+ with validation logic.
# +validate_each+ to determine validity therefore subclasses should
# override +validate_each+ with validation logic.
def validate(record)
attributes.each do |attribute|
value = record.read_attribute_for_validation(attribute)