Permalink
Browse files

Avoid clobbering existing config values

  • Loading branch information...
1 parent 325b4ee commit 58bda210db7255a4346fb2750cb32c32a4782511 @dgm committed May 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sass/rails/railtie.rb
@@ -74,8 +74,8 @@ module SassContext
initializer :setup_compression, :group => :all do |app|
if app.config.assets.compress
- app.config.sass.style = :compressed
- app.config.assets.css_compressor = CssCompressor.new
+ app.config.sass.style ||= :compressed
+ app.config.assets.css_compressor ||= CssCompressor.new
end
end
end

0 comments on commit 58bda21

Please sign in to comment.