soveran/ohm — pull request #66 by mikz (2012-08-18 13:49:10+00:00)
Title: Union keys when passing array to except 

Hi.
I found some strange behavior when I tried to find all models except some keys. It tried to intersect given keys (resulting in empty set) and then do (all - intersected keys). I think it is wrong, so I wrote this patch:

Instead of intersecting keys - union them when doing set.except(filters)

When doing `Model.all.except(key: %w{some ids})`
it more sense to return (all - (some + ids))
instead of (all - (some & ids))

Wdyt? If it is mergeable I'll make test & check if everything builds ok.