Permalink
Browse files

If you set a js_compressor, it means that you want shit compressed --…

… we dont need a second option to turn that on
  • Loading branch information...
1 parent 7d537b2 commit 93f30f053627aa3457abe32bc75ffeafa215ef55 @dhh dhh committed Jun 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/sprockets/railtie.rb
View
4 actionpack/lib/sprockets/railtie.rb
@@ -54,8 +54,8 @@ def asset_environment(app)
env.static_root = File.join(app.root.join("public"), assets.prefix)
env.paths.concat assets.paths
env.logger = Rails.logger
- env.js_compressor = expand_js_compressor(assets.js_compressor) if assets.compress
- env.css_compressor = expand_css_compressor(assets.css_compressor) if assets.compress
+ env.js_compressor = expand_js_compressor(assets.js_compressor)
+ env.css_compressor = expand_css_compressor(assets.css_compressor)
env
end

0 comments on commit 93f30f0

Please sign in to comment.