lib/generators/bootstrap/install/install_generator.rb in twitter-bootstrap-rails-2.0.8 vs lib/generators/bootstrap/install/install_generator.rb in twitter-bootstrap-rails-2.0.9
- old
+ new
@@ -16,10 +16,10 @@
end
if File.exist?('app/assets/stylesheets/application.css')
# Add our own require:
content = File.read("app/assets/stylesheets/application.css")
- if content.match(/require_tree\s+\./)
+ if content.match(/require_tree\s+\.\s*$/)
# Good enough - that'll include our bootstrap_and_overrides.css.less
else
style_require_block = " *= require bootstrap_and_overrides\n"
insert_into_file "app/assets/stylesheets/application.css", style_require_block, :after => "require_self\n"
end