ActiveRecord structured_criteria fix for match