aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorAnton Davydov <antondavydov.o@gmail.com>2015-01-12 18:21:56 +0300
committerAnton Davydov <antondavydov.o@gmail.com>2015-01-12 18:21:56 +0300
commit095b92af6c38db0e6a87ed7eef3f09203d99dd17 (patch)
tree2523d5e676792d208fbd616327a0ec470b392c36 /activemodel
parent970fe27b02fa7df9e01276861adebc131083958c (diff)
downloadrails-095b92af6c38db0e6a87ed7eef3f09203d99dd17.tar.gz
rails-095b92af6c38db0e6a87ed7eef3f09203d99dd17.tar.bz2
rails-095b92af6c38db0e6a87ed7eef3f09203d99dd17.zip
Fix error messages scope [skip ci]
Diffstat (limited to 'activemodel')
-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 55687cb3c7..477edbd120 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -388,8 +388,8 @@ module ActiveModel
# Translates an error message in its default scope
# (<tt>activemodel.errors.messages</tt>).
#
- # Error messages are first looked up in <tt>models.MODEL.attributes.ATTRIBUTE.MESSAGE</tt>,
- # if it's not there, it's looked up in <tt>models.MODEL.MESSAGE</tt> and if
+ # Error messages are first looked up in <tt>activemodel.errors.models.MODEL.attributes.ATTRIBUTE.MESSAGE</tt>,
+ # if it's not there, it's looked up in <tt>activemodel.errors.models.MODEL.MESSAGE</tt> and if
# that is not there also, it returns the translation of the default message
# (e.g. <tt>activemodel.errors.messages.MESSAGE</tt>). The translated model
# name, translated attribute name and the value are available for