1
0
Fork 0
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:
Rafael Mendonça França 2015-02-09 13:38:19 -02:00
commit 20649697ce

View file

@ -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