diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2011-12-05 21:52:45 -0500 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2011-12-05 22:02:53 -0500 |
commit | d834755dad5c802f539bdf77ff01572d1a203a8e (patch) | |
tree | 411b2d8c05bf67df8b0d2afcf531a3481e8b8725 /activemodel/lib | |
parent | 8aa7b8695dd90989de699e050b61d755e3a61b19 (diff) | |
download | rails-d834755dad5c802f539bdf77ff01572d1a203a8e.tar.gz rails-d834755dad5c802f539bdf77ff01572d1a203a8e.tar.bz2 rails-d834755dad5c802f539bdf77ff01572d1a203a8e.zip |
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 |