Rails gives us a pathname, pathnames don't like =~

This commit is contained in:
Chris Eppstein 2010-11-15 18:01:04 -08:00
parent 7835b12ce3
commit dabd4f6f9d

View File

@ -8,7 +8,7 @@ module Compass::Configuration::Paths
class_eval %Q{ class_eval %Q{
def #{attr} # def css_dir def #{attr} # def css_dir
path = #{attr}_with_trailing_separator # path = css_dir_with_trailing_separator 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)] path = path[0..-($1.length+1)] # path = path[0..-($1.length+1)]
end # end end # end
path # path path # path