Skip to content

Commit

Permalink
Remove warning from ActionView::Helpers::Tags::Translator
Browse files Browse the repository at this point in the history
This removes the following warning:

    /GitHub/rails/actionview/lib/action_view/helpers/tags/translator.rb:19: warning: private attribute?
  • Loading branch information
yuki24 committed Feb 9, 2015
1 parent de9a374 commit 6b76c2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionview/lib/action_view/helpers/tags/translator.rb
Expand Up @@ -14,10 +14,12 @@ def translate
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
Expand Down

0 comments on commit 6b76c2e

Please sign in to comment.