lib/hanami/assets/compressors/sass_stylesheet.rb in hanami-assets-0.2.1 vs lib/hanami/assets/compressors/sass_stylesheet.rb in hanami-assets-0.3.0

- old
+ new

@@ -16,11 +16,11 @@ class SassStylesheet < Stylesheet # @since 0.1.0 # @api private # # FIXME This is the same logic that we have for Hanami::Assets::Compiler - SASS_CACHE_LOCATION = Pathname(Hanami.respond_to?(:root) ? + SASS_CACHE_LOCATION = Pathname(Hanami.respond_to?(:root) ? # rubocop:disable Style/MultilineTernaryOperator Hanami.root : Dir.pwd).join('tmp', 'sass-cache') # @since 0.1.0 # @api private def initialize @compressor = Sass::Engine @@ -28,10 +28,10 @@ # @since 0.1.0 # @api private def compress(filename) compressor.new(read(filename), filename: filename, syntax: :scss, - style: :compressed, cache_location: SASS_CACHE_LOCATION).render + style: :compressed, cache_location: SASS_CACHE_LOCATION).render end end end end end