8000 Make `with_translation` helper locale independent · oddcamp/activeadmin@fd7f8ec · GitHub
[go: up one dir, main page]

Skip to content

Commit fd7f8ec

Browse files
author
David Rodríguez
committed
Make with_translation helper locale independent
1 parent 13698f1 commit fd7f8ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/active_admin_integration_spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class MockActionView < ::ActionView::Base
5959
end
6060

6161
def with_translation(translation)
62-
I18n.backend.store_translations :en, translation
62+
I18n.backend.store_translations I18n.locale, translation
6363
yield
6464
ensure
6565
I18n.backend.reload!

0 commit comments

Comments
 (0)
0