aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-05-01 13:41:57 -0500
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-05-01 13:41:57 -0500
commit707b5c00abf98f1a383b96ad34313ff82d40758d (patch)
tree20b284845b705eb8abde90fa5e0cbb09638981e8
parent7b37e3edaf25627b6db023be5a1f8bf9733aafdd (diff)
downloadrails-707b5c00abf98f1a383b96ad34313ff82d40758d.tar.gz
rails-707b5c00abf98f1a383b96ad34313ff82d40758d.tar.bz2
rails-707b5c00abf98f1a383b96ad34313ff82d40758d.zip
Active Model: Messages for strict validation always convert attributes to human readable form [ci skip]
-rw-r--r--activemodel/lib/active_model/errors.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index d106f65fa2..87db8e2e19 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -310,9 +310,9 @@ module ActiveModel
# <tt>:strict</tt> option can also be set to any other exception.
#
# person.errors.add(:name, :invalid, strict: true)
- # # => ActiveModel::StrictValidationFailed: name is invalid
+ # # => ActiveModel::StrictValidationFailed: Name is invalid
# person.errors.add(:name, :invalid, strict: NameIsInvalid)
- # # => NameIsInvalid: name is invalid
+ # # => NameIsInvalid: Name is invalid
#
# person.errors.messages # => {}
#