…x - 1] This change has the side-effect of making `chained_flags_condition` work with all negative flags (0 is a possible value returned by `sql_in_for_flag`).
…dator tests for Rails 2.3. Use :get on errors if :messages isn't available (Rails 3.0)
…ns; Add more tests
When you chain multiple named scope generated by FlagShihTzu, generated ActiveRecord query would look like this. Spaceship.warpdrive.shields.not_electrolytes # => (spaceships.flags in (1,3,5,7)) AND (spaceships.flags in (2,3,6,7)) AND (spaceships.flags not in (4,5,6,7)) With the chained_flags_with introduced with this patch, you can write the same query in an optimized search. Spaceship.chained_flags_with("flags", :warpdrive, :shields, :not_electrolytes) # => (spaceships.flags in (3)) You can also name it with the named scope: scope :listed, chained_flags_with("flags", :warpdrive, :shields, :not_electrolytes)