Skip to content

Commit

Permalink
Keep to_s, it's a multiruby thing
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Apr 27, 2010
1 parent 163edc5 commit 00b8ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pickle/parser/matchers.rb
Expand Up @@ -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
Expand Down

0 comments on commit 00b8ba2

Please sign in to comment.