lib/padrino-gen/generators/components/stylesheets/scss.rb in padrino-gen-0.9.24 vs lib/padrino-gen/generators/components/stylesheets/scss.rb in padrino-gen-0.9.25

- old
+ new

@@ -1,6 +1,6 @@ -SCSS_INIT = (<<-SCSS).gsub(/^ {6}/, '') +SCSS_INIT = (<<-SCSS).gsub(/^/, ' ') # Enables support for SCSS template reloading in rack applications. # See http://nex-3.com/posts/88-sass-supports-rack for more details. # Store SCSS files (by default) within 'app/stylesheets' require 'sass/plugin/rack' Sass::Plugin.options[:syntax] = :scss @@ -9,8 +9,8 @@ app.use Sass::Plugin::Rack SCSS def setup_stylesheet require_dependencies 'haml' - initializer :scss, SCSS_INIT + initializer :scss, SCSS_INIT.chomp empty_directory destination_root('/app/stylesheets') end \ No newline at end of file