diff options
author | Yuki Nishijima <mail@yukinishijima.net> | 2015-02-08 16:00:12 -0800 |
---|---|---|
committer | Yuki Nishijima <mail@yukinishijima.net> | 2015-02-08 16:00:19 -0800 |
commit | 6b76c2e280f9e9c0289f5eff7b3680bca61bafab (patch) | |
tree | 13df76edc64105f3f2870c21d6bc4f8cb7758d7c | |
parent | de9a3748c436f849dd1877851115cd94663c2725 (diff) | |
download | rails-6b76c2e280f9e9c0289f5eff7b3680bca61bafab.tar.gz rails-6b76c2e280f9e9c0289f5eff7b3680bca61bafab.tar.bz2 rails-6b76c2e280f9e9c0289f5eff7b3680bca61bafab.zip |
Remove warning from ActionView::Helpers::Tags::Translator
This removes the following warning:
/GitHub/rails/actionview/lib/action_view/helpers/tags/translator.rb:19: warning: private attribute?
-rw-r--r-- | actionview/lib/action_view/helpers/tags/translator.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/tags/translator.rb b/actionview/lib/action_view/helpers/tags/translator.rb index e70fe024e8..8b6655481d 100644 --- a/actionview/lib/action_view/helpers/tags/translator.rb +++ b/actionview/lib/action_view/helpers/tags/translator.rb @@ -14,10 +14,12 @@ module ActionView translated_attribute || human_attribute_name end - private + protected attr_reader :object_name, :method_and_value, :scope, :model + private + def i18n_default if model key = model.model_name.i18n_key |