Skip to content

Commit

Permalink
[Rails] When installing into a new rails project, set the http paths …
Browse files Browse the repository at this point in the history
…correctly for stylesheets and javascripts.
  • Loading branch information
chriseppstein committed Jul 7, 2009
1 parent b7a9772 commit 94e9696
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/compass/installers/rails.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 94e9696

Please sign in to comment.