mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #18841 from yuki24/remove-warning-from-av-tags-translator
Remove warning from ActionView::Helpers::Tags::Translator
This commit is contained in:
commit
20649697ce
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