lib/sass/rails/railtie.rb in sass-rails-3.1.3 vs lib/sass/rails/railtie.rb in sass-rails-3.1.4
- old
+ new
@@ -39,11 +39,11 @@
Sprockets.register_engine '.sass', Sass::Rails::SassTemplate
Sprockets.register_engine '.scss', Sass::Rails::ScssTemplate
end
end
- initializer :setup_sass, :group => :assets do |app|
+ initializer :setup_sass, :group => :all do |app|
# Only emit one kind of syntax because though we have registered two kinds of generators
syntax = app.config.sass.preferred_syntax.to_sym
alt_syntax = syntax == :sass ? "scss" : "sass"
app.config.generators.hide_namespace alt_syntax
@@ -62,10 +62,10 @@
app.assets.context_class.sass_config = app.config.sass
Sass.logger = app.config.sass.logger
end
- initializer :setup_compression, :group => :assets do |app|
+ initializer :setup_compression, :group => :all do |app|
if app.config.assets.compress
# Use sass's css_compressor
app.config.assets.css_compressor = CssCompressor.new
end
end