From dabd4f6f9d5acd8526107a75a0cdc06d517a09e9 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 15 Nov 2010 18:01:04 -0800 Subject: [PATCH] Rails gives us a pathname, pathnames don't like =~ --- lib/compass/configuration/paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/configuration/paths.rb b/lib/compass/configuration/paths.rb index 01d9cd92..3bf3d02d 100644 --- a/lib/compass/configuration/paths.rb +++ b/lib/compass/configuration/paths.rb @@ -8,7 +8,7 @@ module Compass::Configuration::Paths class_eval %Q{ def #{attr} # def css_dir path = #{attr}_with_trailing_separator # path = css_dir_with_trailing_separator - if path =~ TRAILING_SEPARATOR # if path =~ TRAILING_SEPARATOR + if path.to_s =~ TRAILING_SEPARATOR # if path =~ TRAILING_SEPARATOR path = path[0..-($1.length+1)] # path = path[0..-($1.length+1)] end # end path # path