1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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?
This commit is contained in:
Yuki Nishijima 2015-02-08 16:00:12 -08:00
parent de9a3748c4
commit 6b76c2e280

View file

@ -14,10 +14,12 @@ module ActionView
translated_attribute || human_attribute_name translated_attribute || human_attribute_name
end end
private protected
attr_reader :object_name, :method_and_value, :scope, :model attr_reader :object_name, :method_and_value, :scope, :model
private
def i18n_default def i18n_default
if model if model
key = model.model_name.i18n_key key = model.model_name.i18n_key