Skip to content

Commit d113392

Browse files
committed
Swap the conditionals
1 parent 3616c29 commit d113392

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/sass/rails/railtie.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ class Railtie < ::Rails::Railtie
7171
end
7272

7373
initializer :setup_compression, group: :all do |app|
74-
unless Rails.env.development?
74+
if Rails.env.development?
75+
# Use expanded output instead of the sass default of :nested unless specified
76+
app.config.sass.style ||= :expanded
77+
else
7578
# config.assets.css_compressor may be set to nil in non-dev environments.
7679
# otherwise, the default is sass compression.
7780
app.config.assets.css_compressor = :sass unless app.config.assets.has_key?(:css_compressor)
78-
else
79-
# Use expanded output instead of the sass default of :nested unless specified
80-
app.config.sass.style ||= :expanded
8181
end
8282
end
8383
end

0 commit comments

Comments
 (0)