lib/sprockets/sass_compressor.rb in sprockets-3.0.0.beta.8 vs lib/sprockets/sass_compressor.rb in sprockets-3.0.0.beta.9

- old
+ new

@@ -1,7 +1,5 @@ -require 'sass' - module Sprockets # Public: Sass CSS minifier. # # To accept the default options # @@ -25,21 +23,21 @@ def self.call(input) instance.call(input) end - def cache_key + def self.cache_key instance.cache_key end attr_reader :cache_key def initialize(options = {}) @options = options @cache_key = [ self.class.name, - ::Sass::VERSION, + Autoload::Sass::VERSION, VERSION, options ].freeze end @@ -50,10 +48,10 @@ syntax: :scss, cache: false, read_cache: false, style: :compressed }.merge(@options) - ::Sass::Engine.new(data, options).render + Autoload::Sass::Engine.new(data, options).render end end end end