lib/generators/boilerplate/install/install_generator.rb in rails-boilerplate-0.1.7 vs lib/generators/boilerplate/install/install_generator.rb in rails-boilerplate-0.1.8

- old
+ new

@@ -12,10 +12,14 @@ def copy_application template 'index.html', "app/views/layouts/application.html.erb" end def inject_reset_css - inject_into_file "app/assets/stylesheets/application.css", :before => " *= require_self" do + application_css_scss = "app/assets/stylesheets/application.css.scss" + application_css = "app/assets/stylesheets/application.css" + css_file = File.exist?(application_css_scss) ? application_css_scss : application_css + + inject_into_file css_file, :before => " *= require_self" do " *= require reset\n" end end def inject_plugins_css inject_into_file "app/assets/javascripts/application.js", :before => "//= require jquery\n" do