app/views/locomotive/shared/_head.html.haml in locomotive_cms-2.0.0.rc7 vs app/views/locomotive/shared/_head.html.haml in locomotive_cms-2.0.0.rc8

- old
+ new

@@ -17,11 +17,11 @@ %script{ :type => 'text/javascript' } :plain window.locale = '#{I18n.locale}'; window.content_locale = '#{::Mongoid::Fields::I18n.locale}'; - Locomotive.current_site = new Locomotive.Models.Site(#{current_site.to_json}); - Locomotive.current_account = new Locomotive.Models.Account(#{current_locomotive_account.to_json}); + Locomotive.current_site = new Locomotive.Models.Site(#{j current_site.to_presenter.as_json_for_html_view.to_json.html_safe}); + Locomotive.current_account = new Locomotive.Models.Account(#{j current_locomotive_account.to_json.html_safe}); $(document).ready(function() { window.application_view = new Locomotive.Views.ApplicationView({ flash: #{flash.to_json},