Skip to content

Commit

Permalink
Always append foundation to application stylesheet.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tilsammans committed Mar 12, 2013
1 parent d03f308 commit dc879dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foundation/generators/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def add_assets
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
Expand Down

0 comments on commit dc879dc

Please sign in to comment.