From 94e9696b30a9a9fd750c45e6fe3c2bc93eba506a Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Tue, 7 Jul 2009 11:18:58 -0700 Subject: [PATCH] [Rails] When installing into a new rails project, set the http paths correctly for stylesheets and javascripts. --- lib/compass/installers/rails.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/compass/installers/rails.rb b/lib/compass/installers/rails.rb index b9120dd871..fef642347c 100644 --- a/lib/compass/installers/rails.rb +++ b/lib/compass/installers/rails.rb @@ -9,6 +9,8 @@ def configuration_defaults :css_dir => (css_dir || prompt_css_dir), :images_dir => default_images_dir, :javascripts_dir => default_javascripts_dir, + :http_stylesheets_path => default_http_stylesheets_path, + :http_javascripts_path => default_http_javascripts_path, :http_images_path => default_http_images_path } end @@ -55,6 +57,14 @@ def default_http_images_path "/images" end + def default_http_javascripts_path + "/javascripts" + end + + def default_http_stylesheets_path + "/stylesheets" + end + def prompt_sass_dir recommended_location = separate('app/stylesheets') default_location = separate('public/stylesheets/sass')