提交 a6a62004 编写于 作者: S Sven Fuchs

add human_name and value to ar validation #generate_message

上级 e2b19168
......@@ -39,8 +39,8 @@ def test_translated_model_names_with_sti_fallback
end
private
def reset_translations
I18n.backend.send(:class_variable_set, :@@translations, {})
end
def reset_translations
I18n.backend = I18n::Backend::Simple.new
end
end
......@@ -63,7 +63,7 @@ def populate(&block)
# files which are either named *.rb and contain plain Ruby Hashes or are
# named *.yml and contain YAML data.)
def load_translations(*args)
backend.load_translations *args
backend.load_translations(*args)
end
# Stores translations for the given locale in the backend.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册