lib/sass/globbing/monkey_patches.rb in sass-globbing-1.1.0.pre.0 vs lib/sass/globbing/monkey_patches.rb in sass-globbing-1.1.0.pre.1
- old
+ new
@@ -3,10 +3,10 @@
class Sass::Engine
alias old_initialize initialize
def initialize(template, options={})
old_initialize(template, options)
- unless self.options[:load_paths].include?(Sass::Globbing::Importer.instance)
- self.options[:load_paths].push Sass::Globbing::Importer.instance
- end
+ self.options[:load_paths].delete(Sass::Globbing::Importer.instance) # in case it's there
+ self.options[:load_paths] << Sass::Globbing::Importer.instance
end
end
+