Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Oct 1, 2014
  1. @trliner
Commits on Mar 7, 2014
  1. @atipugin
Commits on Nov 26, 2013
  1. More tests / coverage

    authored
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 authored
    …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 authored
    …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

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

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

    Allow non sequential flag numbers

    thomasjachmann authored
    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 authored
  3. @cinconnu

    Added validator

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

    authored
Commits on Oct 11, 2012
  1. @cinconnu

    added documentation

    cinconnu authored
    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 authored
    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
Commits on Apr 5, 2012
Commits on Dec 27, 2011
  1. @boosty

    Fix deprecation warning for set_table_name

    boosty authored
    ActiveRecord 3.2.x uses `self.table_name = …` instead
Commits on Nov 24, 2011
  1. @arturaz
  2. @arturaz
Commits on Oct 21, 2011
  1. @boosty
  2. @trliner @boosty

    Add '_changed?' dirty suffix instance methods

    trliner authored boosty committed
  3. @boosty
  4. @boosty
Something went wrong with that request. Please try again.