Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
dhh committed Jun 8, 2011
1 parent aefd703 commit da8ba39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/sprockets/railtie.rb
Expand Up @@ -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

Expand Down

0 comments on commit da8ba39

Please sign in to comment.