diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-06 00:41:43 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-06 00:41:43 -0800 |
commit | 81fec5dfc4adb06072aa7059f5c6554171eafb68 (patch) | |
tree | da07fa5f437872eea6df1c1cb9d211fbf57ed761 /activemodel/lib | |
parent | 1ee832b2d8bd64f8758f838c43854b3133831f1a (diff) | |
parent | d834755dad5c802f539bdf77ff01572d1a203a8e (diff) | |
download | rails-81fec5dfc4adb06072aa7059f5c6554171eafb68.tar.gz rails-81fec5dfc4adb06072aa7059f5c6554171eafb68.tar.bz2 rails-81fec5dfc4adb06072aa7059f5c6554171eafb68.zip |
Merge pull request #3872 from marcandre/i18n_key
ActiveModel::Name#i18n_key: Fix doc and add tests
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/naming.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb index 953d24a3b2..3caa61e41b 100644 --- a/activemodel/lib/active_model/naming.rb +++ b/activemodel/lib/active_model/naming.rb @@ -71,8 +71,8 @@ module ActiveModel # BookCover.model_name # => "BookCover" # BookCover.model_name.human # => "Book cover" # - # BookCover.model_name.i18n_key # => "book_cover" - # BookModule::BookCover.model_name.i18n_key # => "book_module.book_cover" + # BookCover.model_name.i18n_key # => :book_cover + # BookModule::BookCover.model_name.i18n_key # => :"book_module/book_cover" # # Providing the functionality that ActiveModel::Naming provides in your object # is required to pass the Active Model Lint test. So either extending the provided |