Skip to content
Commits on Oct 8, 2015
Commits on Oct 7, 2015
  1. Fixing Hound warnings

    committed
  2. Fixing Hound warnings

    committed
  3. Ruby 1.9-style hashes

    committed
  4. More cleanup

    committed
  5. More cleanup

    committed
  6. More Hound cleanup

    committed
Commits on Oct 1, 2014
  1. @trliner
Commits on Mar 7, 2014
  1. @atipugin
Commits on Nov 26, 2013
  1. More tests / coverage

    committed
Commits on Nov 25, 2013
Commits on Oct 22, 2013
  1. @thomsbg

    Change `sql_in_for_flag` to consider values from the range [0, 2 * ma…

    thomsbg committed
    …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`).
Commits on Aug 6, 2013
Commits on Jul 28, 2013
  1. @petergoldstein

    Fix assorted Rails 2.3 and 3.0 test failures. Hide validator and vali…

    petergoldstein committed
    …dator tests for Rails 2.3. Use :get on errors if :messages isn't available (Rails 3.0)
Commits on Jun 21, 2013
  1. arity tests

    committed
Commits on Jun 20, 2013
  1. Merge pull request #26 from ddidier/master

    committed
    Added validator
Commits on Jun 12, 2013
  1. @thomasjachmann

    Allow non sequential flag numbers

    thomasjachmann committed
    If flag numbers are non sequential (eg someone removed one flag because
    it wasn't needed anymore), the SQL generated still will include all
    possible integers. Before, it was missing some.
Commits on Jan 22, 2013
  1. @cinconnu
  2. @cinconnu

    Changed validator test

    cinconnu committed
  3. @cinconnu

    Added validator

    cinconnu committed
Commits on Nov 6, 2012
  1. Merged origin/master

    committed
Commits on Oct 11, 2012
  1. @cinconnu

    added documentation

    cinconnu committed
    added has_<flag>? instance method
Commits on Aug 22, 2012
  1. @cinconnu
Commits on Jun 25, 2012
  1. @miyagawa

    Implemented chained_flags_with, which allows optimizing the bit search

    miyagawa committed
    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)
Commits on Jun 22, 2012
  1. @miyagawa
Commits on Jun 21, 2012
  1. @cinconnu
Commits on Apr 17, 2012
  1. @boosty
Something went wrong with that request. Please try again.