From 7ba0d44eaa46d4078a9bb1ab7a1699600ba6908d Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 18 Mar 2012 14:14:20 -0700 Subject: [PATCH] Make Pathname objects work with add_import_path --- lib/compass/configuration/data.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compass/configuration/data.rb b/lib/compass/configuration/data.rb index 30c5e7c2..93e3be62 100644 --- a/lib/compass/configuration/data.rb +++ b/lib/compass/configuration/data.rb @@ -79,6 +79,7 @@ module Compass end def add_import_path(*paths) + paths.map!{|p| defined?(Pathname) && Pathname === p ? p.to_s : p} # The @added_import_paths variable works around an issue where # the additional_import_paths gets overwritten during parse @added_import_paths ||= []