diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-01-10 18:30:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 18:30:30 -0500 |
commit | 2e252852134eb321de975bddd111e19e77da9b27 (patch) | |
tree | 35430a7039e130feb03c53ef9de6f48139304701 /activemodel/lib/active_model | |
parent | b292b76c2dd0f04fb090d49b90716a0e6037b41a (diff) | |
parent | e0fee7a71f1a8aae3fd8912e17d3e240f6f58515 (diff) | |
download | rails-2e252852134eb321de975bddd111e19e77da9b27.tar.gz rails-2e252852134eb321de975bddd111e19e77da9b27.tar.bz2 rails-2e252852134eb321de975bddd111e19e77da9b27.zip |
Merge pull request #27639 from scottgonzalez/validator-typo
Fix typo
Diffstat (limited to 'activemodel/lib/active_model')
-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) |