mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix typo
This commit is contained in:
parent
b292b76c2d
commit
e0fee7a71f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue