lib/foundation/generators/install_generator.rb in zurb-foundation-4.1.1 vs lib/foundation/generators/install_generator.rb in zurb-foundation-4.1.2

- old
+ new

@@ -19,9 +19,10 @@ 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" end def detect_js_format + return ['.coffee', '#='] if File.exist?('app/assets/javascripts/application.coffee') return ['.js.coffee', '#='] if File.exist?('app/assets/javascripts/application.js.coffee') return ['.js', '//='] if File.exist?('app/assets/javascripts/application.js') end def detect_css_format