woahdae/active_record_or — Issue #1: Creates unnecessary parens
Author: woahdae
Created: 2012-01-24 23:22:38+00:00
State: open

Although they shouldn't damage the logic, the extra parens sure are ugly.

If people find this project useful, it might be worth looking in to this.

Example from the tests:

to_blacklist.where_sql.must_equal(
"WHERE (((((artist_mentions_count > 0)"\
" OR (competition_rank > 7)))"\
" OR (subjective_dislike_rating > 3)))")