From 50aa936e02b99d1fe07b020b305339594422ac19 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 26 Jul 2009 15:57:32 -0700 Subject: [PATCH] [Rails] [Closes #32] Don't suggest creating a stylesheet link to partials. --- lib/compass/installers/rails.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/compass/installers/rails.rb b/lib/compass/installers/rails.rb index 3d920a51..9f2a3e36 100644 --- a/lib/compass/installers/rails.rb +++ b/lib/compass/installers/rails.rb @@ -117,6 +117,8 @@ Compass.configure_sass_plugin! def stylesheet_links html = "%head\n" manifest.each_stylesheet do |stylesheet| + # Skip partials. + next if File.basename(stylesheet.from)[0..0] == "_" ss_line = " = stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.sass$/,'.css')}'" if stylesheet.options[:media] ss_line += ", :media => '#{stylesheet.options[:media]}'"