Skip to content

Commit

Permalink
Swap the conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Sep 3, 2015
1 parent 3bf15a1 commit a031aca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sass/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ class Railtie < ::Rails::Railtie
end

initializer :setup_compression, group: :all do |app|
unless Rails.env.development?
if Rails.env.development?
# Use expanded output instead of the sass default of :nested unless specified
app.config.sass.style ||= :expanded
else
# config.assets.css_compressor may be set to nil in non-dev environments.
# otherwise, the default is sass compression.
app.config.assets.css_compressor = :sass unless app.config.assets.has_key?(:css_compressor)
else
# Use expanded output instead of the sass default of :nested unless specified
app.config.sass.style ||= :expanded
end
end
end
Expand Down

0 comments on commit a031aca

Please sign in to comment.