Skip to content

Commit c861072

Browse files
author
Francesco Rodriguez
committed
Remove Sass:Rails::Compressor. Use Sprockets::SassCompressor instead.
1 parent a37196e commit c861072

File tree

4 files changed

+4
-30
lines changed

4 files changed

+4
-30
lines changed

lib/sass/rails.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module Sass
22
module Rails
3-
autoload :CssCompressor, 'sass/rails/compressor'
4-
autoload :Logger, 'sass/rails/logger'
3+
autoload :Logger, 'sass/rails/logger'
54
end
65
end
76

lib/sass/rails/compressor.rb

Lines changed: 0 additions & 23 deletions
This file was deleted.

lib/sass/rails/railtie.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ class Railtie < ::Rails::Railtie
5050
Sass.logger = app.config.sass.logger
5151
end
5252

53-
initializer :setup_compression, :group => :all do |app|
53+
initializer :setup_compression, group: :all do |app|
5454
unless Rails.env.development?
55-
# Use compressed style if none specified
56-
app.config.sass.style ||= :compressed
57-
app.config.assets.css_compressor ||= CssCompressor.new(:style => app.config.sass.style)
55+
app.config.assets.css_compressor ||= :sass
5856
else
5957
# Use expanded output instead of the sass default of :nested unless specified
6058
app.config.sass.style ||= :expanded

0 commit comments

Comments
 (0)