joelmoss/bitmask_attributes — pull request #10 by spemmons (2012-03-23 17:20:57+00:00)
Title: extend the "without_" scope to allow multiple values

curiously, the existing implementation allowed multiple values being passed but silently ignored all but the first

however, it is really desirable (for me, anyway) to be able to exclude more than a single value

of course, you could chain them the old way, but if you have a bitmask you want to exclude any matches for in one condition, this change makes that work nicely

i also added additional tests for these scenarios and updated the documentation to reflect it

one concern: given that people may have been passing multiple values in the past with no warning from rails, some people doing this and not realizing it could see different behavior...