binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.39k stars 133 forks source link

Does not work with Ruby 1.9.1 #78

Open jaycode opened 14 years ago

jaycode commented 14 years ago

The search shows something like: SELECT birds.* FROM birds INNER JOIN bird_sizes ON bird_sizes.id = birds.bird_size_id INNER JOIN bird_shapes ON bird_shapes.id = birds.bird_shape_id INNER JOIN bird_types ON bird_types.id = birds.bird_type_id INNER JOIN bird_families ON bird_families.id = birds.bird_family_id WHERE ((birds.common_name LIKE '%["winter"]%') OR (birds.latin_name LIKE '%["winter"]%') OR (bird_families.name LIKE '%["winter"]%') OR (bird_types.description LIKE '%["winter"]%') OR (bird_shapes.name LIKE '%["winter"]%') OR (bird_sizes.size LIKE '%["winter"]%')) ORDER BY birds.id ASC LIMIT 0, 25

in ruby 1.9.1 (note the %[")

works perfectly with 1.8.7