]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Always append foundation to application stylesheet. 1865/head
authorJoost Baaij <joost@spacebabies.nl>
Tue, 12 Mar 2013 21:36:28 +0000 (22:36 +0100)
committerJoost Baaij <joost@spacebabies.nl>
Tue, 12 Mar 2013 21:36:28 +0000 (22:36 +0100)
I removed the detection of require_self, since that might be gone
from an application that's written using Compass exclusively.
There is no need for the require to be appended immediately
after require_self, and this change makes the generator work
on more permutations of the application stylesheet.

lib/foundation/generators/install_generator.rb

index d08ea2dff4ee24ae8c98e33a4423e4a13d839b2a..8e5b57bb752468d551913c821f68a92f1cb4b7f9 100644 (file)
@@ -17,7 +17,7 @@ module Foundation
         settings_file = File.join(File.dirname(__FILE__),"..","..","..","templates","project","scss","_settings.scss")
         create_file "app/assets/stylesheets/foundation_and_overrides.scss", File.read(settings_file)
         append_to_file "app/assets/stylesheets/foundation_and_overrides.scss", "\n@import 'foundation';\n"
-        insert_into_file "app/assets/stylesheets/application#{detect_css_format[0]}", "#{detect_css_format[1]} require foundation_and_overrides\n", :after => "require_self\n"
+        append_to_file "app/assets/stylesheets/application#{detect_css_format[0]}", "#{detect_css_format[1]} require foundation_and_overrides\n"
       end
 
       def detect_js_format