From eba41c6f9f3475aebf9d2a24f95325a7d5204308 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Thu, 2 Feb 2012 18:37:31 +1300 Subject: [PATCH] Suppressing newlines on non output code blocks. --- core/app/assets/javascripts/store/helpers.js.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/app/assets/javascripts/store/helpers.js.erb b/core/app/assets/javascripts/store/helpers.js.erb index 9c028db5bec..f2d970e5c00 100644 --- a/core/app/assets/javascripts/store/helpers.js.erb +++ b/core/app/assets/javascripts/store/helpers.js.erb @@ -1,5 +1,5 @@ var Spree = {} -<% path = Rails.application.routes.named_routes[:spree].path %> -<% # Rails 3.2 returns a Journey::Path::Pattern object, Rails 3.1 an actual path. %> -<% path = path.respond_to?(:spec) ? path.spec : path %> +<% path = Rails.application.routes.named_routes[:spree].path -%> +<% # Rails 3.2 returns a Journey::Path::Pattern object, Rails 3.1 an actual path. -%> +<% path = path.respond_to?(:spec) ? path.spec : path -%> Spree.base_path = <%= path.inspect %>