lib/classy_assets/sprockets.rb in classy_assets-0.14.4 vs lib/classy_assets/sprockets.rb in classy_assets-0.14.5
- old
+ new
@@ -1,8 +1,7 @@
# encoding: utf-8
-
require 'sprockets'
module ClassyAssets
class Sprockets
attr_accessor :asset_root, :environment
def initialize
@@ -22,18 +21,17 @@
sprockets_environment.append_path asset_path
end
if @config.asset_compress
sprockets_environment.css_compressor = @config.css_compressor
- sprockets_environment.js_compressor = @config.css_compressor
+ sprockets_environment.js_compressor = @config.js_compressor
end
sprockets_environment.context_class.class_eval do
def asset_path(path, options = {})
ClassyAssets.asset_url_for(path)
end
end
-
sprockets_environment
end
end
end