fix activerecord i18n_test to work with backend classes
This commit is contained in:
parent
12d7872071
commit
e43cdb93f0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user