diff options
author | Scott González <scott.gonzalez@gmail.com> | 2017-01-10 18:22:52 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2017-01-10 18:22:52 -0500 |
commit | e0fee7a71f1a8aae3fd8912e17d3e240f6f58515 (patch) | |
tree | 35430a7039e130feb03c53ef9de6f48139304701 /activemodel/lib | |
parent | b292b76c2dd0f04fb090d49b90716a0e6037b41a (diff) | |
download | rails-e0fee7a71f1a8aae3fd8912e17d3e240f6f58515.tar.gz rails-e0fee7a71f1a8aae3fd8912e17d3e240f6f58515.tar.bz2 rails-e0fee7a71f1a8aae3fd8912e17d3e240f6f58515.zip |
Fix typo
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/validator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/validator.rb b/activemodel/lib/active_model/validator.rb index 8212744170..98234e9b6b 100644 --- a/activemodel/lib/active_model/validator.rb +++ b/activemodel/lib/active_model/validator.rb @@ -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) |