From b68799e08169f09ecb16c1b8ba2deee5ae9223f7 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 19 Jan 2018 16:24:19 -0500 Subject: [PATCH] FIX: Allow plugins to register importers --- lib/stylesheet/importer.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/stylesheet/importer.rb b/lib/stylesheet/importer.rb index 93e4c479c89..f55d1d2ec74 100644 --- a/lib/stylesheet/importer.rb +++ b/lib/stylesheet/importer.rb @@ -5,14 +5,12 @@ module Stylesheet class Importer < SassC::Importer include GlobalPath - @special_imports = {} - def self.special_imports - @special_imports + @special_imports ||= {} end def self.register_import(name, &blk) - @special_imports[name] = blk + special_imports[name] = blk end register_import "theme_field" do