From 96be4f65d0f68ae948f5665bc09bd3c69955be89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 5 Feb 2015 15:27:27 -0200 Subject: placeholder doesn't exist inside this context --- actionview/lib/action_view/helpers/tags/translator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionview/lib/action_view/helpers') diff --git a/actionview/lib/action_view/helpers/tags/translator.rb b/actionview/lib/action_view/helpers/tags/translator.rb index b626dfab3b..9cdccaf4aa 100644 --- a/actionview/lib/action_view/helpers/tags/translator.rb +++ b/actionview/lib/action_view/helpers/tags/translator.rb @@ -12,8 +12,8 @@ module ActionView end def call - placeholder ||= I18n.t("#{object_name}.#{method_and_value}", :default => i18n_default, :scope => i18n_scope).presence - placeholder || human_attribute_name + translated_attribute = I18n.t("#{object_name}.#{method_and_value}", :default => i18n_default, :scope => i18n_scope).presence + translated_attribute || human_attribute_name end def i18n_default -- cgit v1.2.3