stefankroes/ancestry — pull request #159 by mlitwiniuk (2013-10-26 10:12:25+00:00)
Title: change conditions into arel expressions

I had problems with using both apartment gem (multiple postgres schemas for multitenancy apps) and ancestry - apartments prefixes table with additional schema and created improper prefixes for postgres (ie `SELECT COUNT(*) FROM "public"."menu_items" WHERE "public"."menu_items.ancestry" = '32'`). Changing conditions to arel fixed it.