From 6b76c2e280f9e9c0289f5eff7b3680bca61bafab Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Sun, 8 Feb 2015 16:00:12 -0800 Subject: 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? --- actionview/lib/action_view/helpers/tags/translator.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actionview/lib/action_view/helpers/tags/translator.rb') 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 -- cgit v1.2.3