From 00b8ba2f1306c7e42b194d455e2d3b613265f312 Mon Sep 17 00:00:00 2001 From: Ian White Date: Tue, 27 Apr 2010 17:20:23 +0100 Subject: [PATCH] Keep to_s, it's a multiruby thing --- lib/pickle/parser/matchers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pickle/parser/matchers.rb b/lib/pickle/parser/matchers.rb index 6f36d89e..20977ec9 100644 --- a/lib/pickle/parser/matchers.rb +++ b/lib/pickle/parser/matchers.rb @@ -58,7 +58,7 @@ def match_model end def match_predicate - "(?:#{config.predicates.map{|m| m.sub(/^has_/,'').sub(/\?$/,'').gsub('_','[_ ]')}.join('|')})" + "(?:#{config.predicates.map{|m| m.to_s.sub(/^has_/,'').sub(/\?$/,'').gsub('_','[_ ]')}.join('|')})" end # create capture analogues of match methods