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:
parent
de9a3748c4
commit
6b76c2e280
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue