Fix error in js tag in head

This commit is contained in:
luisramos0
2019-07-16 18:56:07 +01:00
parent 665d0cc86b
commit c81a9fd032

View File

@@ -17,8 +17,8 @@
= render "spree/admin/shared/translations"
= render "spree/admin/shared/routes"
= javascript_tag do
jQuery.alerts.dialogClass = 'spree';
\#{"var AUTH_TOKEN = #{form_authenticity_token.inspect};"}
%script
= "jQuery.alerts.dialogClass = 'spree';"
= raw "var AUTH_TOKEN = \"#{form_authenticity_token}\";"
= yield :head