diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-01-12 16:13:03 +0000 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-01-12 16:13:03 +0000 |
commit | eb7b9738c5fea9e42ad9555cbd4ae776a6b36680 (patch) | |
tree | 2523d5e676792d208fbd616327a0ec470b392c36 /activemodel | |
parent | 970fe27b02fa7df9e01276861adebc131083958c (diff) | |
parent | 095b92af6c38db0e6a87ed7eef3f09203d99dd17 (diff) | |
download | rails-eb7b9738c5fea9e42ad9555cbd4ae776a6b36680.tar.gz rails-eb7b9738c5fea9e42ad9555cbd4ae776a6b36680.tar.bz2 rails-eb7b9738c5fea9e42ad9555cbd4ae776a6b36680.zip |
Merge pull request #18466 from davydovanton/error_message_doc
Fix description for ActiveModel::Errors#generate_message [skip ci]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 4 |
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 |