Permalink
Browse files

[Rails] When installing into a new rails project, set the http paths …

…correctly for stylesheets and javascripts.
  • Loading branch information...
chriseppstein committed Jul 7, 2009
1 parent b7a9772 commit 94e9696b30a9a9fd750c45e6fe3c2bc93eba506a
Showing with 10 additions and 0 deletions.
  1. +10 −0 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')

0 comments on commit 94e9696

Please sign in to comment.