joelmoss/bitmask_attributes — pull request #7 by spemmons (2012-03-17 22:27:25+00:00)
Title: detect that the database field cannot be null and simplify SQL accordingly in scopes, plus optimize "any" scope to make a single bitwise mask condition

I modified the test support classes to have 2 sets: one with the default of :null => true and the other with explicit :null => false. Then I run the entire test set inside a context with each set of classes being used. All pass for me.

Errata: Had to upgrade sqlite to 1.3.5 and added a .gitignore entry for the hidden stuff RubyMine puts in the directory. Hope those don't annoy...

Let me know if you need adjustments before you can accept!

Cheers -SE-