From d397132f7bc9354a5b69dd153d64a3bd5ae5e671 Mon Sep 17 00:00:00 2001 From: wvengen Date: Sun, 7 Jul 2013 02:31:42 +0200 Subject: [PATCH] be safe even with locale string --- app/views/layouts/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_header.html.haml b/app/views/layouts/_header.html.haml index 79a0ba56..dfd5f2f5 100644 --- a/app/views/layouts/_header.html.haml +++ b/app/views/layouts/_header.html.haml @@ -23,6 +23,6 @@ \================================================== / Placed at the end of the document so the pages load faster :javascript - I18n = {locale: '#{I18n.locale}'} + I18n = {locale: '#{j(I18n.locale.to_s)}'} = javascript_include_tag "application" = yield(:javascript)