lib/hanami/assets/compressors/sass_stylesheet.rb in hanami-assets-1.3.2 vs lib/hanami/assets/compressors/sass_stylesheet.rb in hanami-assets-1.3.3
- old
+ new
@@ -1,7 +1,6 @@
require 'hanami/assets/compressors/stylesheet'
-require 'sassc'
module Hanami
module Assets
module Compressors
# Sass compressor for stylesheet
@@ -15,10 +14,11 @@
# @see https://rubygems.org/gems/sass
class SassStylesheet < Stylesheet
# @since 0.1.0
# @api private
def initialize
- @compressor = SassC::Engine
+ require 'sassc'
+ @compressor = ::SassC::Engine
end
# @since 0.1.0
# @api private
def compress(filename)