Permalink
Commits on Jul 27, 2010
  1. Fix bug where chaining breaks Child.has(:token).over(@klass) would er…

    …ror (nil.[])
    
      There seems to be a larger bug with our Join sniffing. Removing it for now, tests still pass?
    pjleonhardt committed Jul 27, 2010
  2. Fix issues with Model Inheritance:

      Set the sanction_roles.principal_type to the Child's class, rather than Child's base_class
    pjleonhardt committed Jul 27, 2010
  3. Robustisizing...

    I think the original intention was to allow declaration like:
      config.principals = [Person, Group]
      # or
      config.principals = ["Person", "Group"]
    
    The 2nd case would fail with previous code, and code is not necessary in the first case
    pjleonhardt committed Jul 27, 2010
Commits on Jun 9, 2010
Commits on May 14, 2010
  1. preload_over typo

    committed May 14, 2010
  2. preloading refactor

    committed May 14, 2010
  3. rm *_all?

    committed May 14, 2010
Commits on May 13, 2010
  1. pulling in some changes

    committed May 13, 2010
  2. Very very very tiny change to warn instead of silently rescueing Acti…

    …veRecord::StatementInvalid
    joegoggins committed with Jan 12, 2010
  3. preloading roles feature

    committed May 13, 2010
Commits on Mar 13, 2010
  1. bumped tiny

    committed Mar 13, 2010
Commits on Mar 4, 2010
  1. When generating this join, rails seems to munge it, but reversing the

    join order fixes it.  This is the SQL (Postgres) generated otherwise:
    
    INNER JOIN sanction_roles AS sanction_permissionable_role_query ON
    'Team' AND = sanction_permissionable_role_query.permissionable_type
    crystalneth committed Mar 4, 2010
  2. Missed some references to roles table.

    To configure the table name:
        Sanction::Role.set_table_name "sanction_roles"
    crystalneth committed Mar 4, 2010
  3. Allowing configurable roles table name.

    This is for compatibility with Spree, which has its own roles table.
    crystalneth committed Mar 4, 2010
Commits on Jan 29, 2010
  1. MATT + PETE: You should pull this one, this is core bug

    that manifests when you have tables with columns with primary_keys that are not .id
    joegoggins committed with pjleonhardt Jan 28, 2010
Commits on Jan 23, 2010
  1. bumped tiny

    committed Jan 23, 2010
Commits on Jan 12, 2010
Commits on Dec 3, 2009
Commits on Dec 2, 2009
  1. adding a version

    committed Dec 2, 2009
Commits on Oct 17, 2009
Commits on Oct 13, 2009
Commits on Oct 9, 2009