placeholder doesn't exist inside this context

上级 ed853488
......@@ -12,8 +12,8 @@ def initialize(object, object_name, method_and_value, i18n_scope)
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册