From 095b92af6c38db0e6a87ed7eef3f09203d99dd17 Mon Sep 17 00:00:00 2001 From: Anton Davydov Date: Mon, 12 Jan 2015 18:21:56 +0300 Subject: Fix error messages scope [skip ci] --- activemodel/lib/active_model/errors.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel') 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 # (activemodel.errors.messages). # - # Error messages are first looked up in models.MODEL.attributes.ATTRIBUTE.MESSAGE, - # if it's not there, it's looked up in models.MODEL.MESSAGE and if + # Error messages are first looked up in activemodel.errors.models.MODEL.attributes.ATTRIBUTE.MESSAGE, + # if it's not there, it's looked up in activemodel.errors.models.MODEL.MESSAGE and if # that is not there also, it returns the translation of the default message # (e.g. activemodel.errors.messages.MESSAGE). The translated model # name, translated attribute name and the value are available for -- cgit v1.2.3