Permalink
Browse files

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

  • Loading branch information...
1 parent 7835b12 commit dabd4f6f9d5acd8526107a75a0cdc06d517a09e9 @chriseppstein chriseppstein committed Nov 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/compass/configuration/paths.rb
@@ -8,7 +8,7 @@ def strip_trailing_separator(*attributes)
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

0 comments on commit dabd4f6

Please sign in to comment.