aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2017-01-10 18:22:52 -0500
committerScott González <scott.gonzalez@gmail.com>2017-01-10 18:22:52 -0500
commite0fee7a71f1a8aae3fd8912e17d3e240f6f58515 (patch)
tree35430a7039e130feb03c53ef9de6f48139304701 /activemodel/lib
parentb292b76c2dd0f04fb090d49b90716a0e6037b41a (diff)
downloadrails-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.rb4
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)