Permalink
Commits on Jul 20, 2011
  1. :id_param option to load_resource allows specification of the param n…

    …ame to find members
    committed Jul 20, 2011
Commits on Jul 1, 2011
  1. Merge pull request #410 from psanford/improve_datamapper_loading

    Load datamapper class methods via append_extensions.
    ryanb committed Jul 1, 2011
  2. Load datamapper class methods via append_extensions.

    This relaxes the previous requirement that cancan has to be loaded
    before any models are. append_extensions will apply to all
    previously loaded models as well as ones loaded after.
    psanford committed Jul 1, 2011
  3. Merge pull request #409 from nhocki/patch-1

    Make CanCan Default Message a translatable text.
    ryanb committed Jul 1, 2011
Commits on Jun 30, 2011
Commits on May 21, 2011
Commits on May 20, 2011
Commits on May 18, 2011
  1. releasing 1.6.5

    ryanb committed May 18, 2011
  2. pass action and subject through AccessDenied exception when :through …

    …isn't found - closes #366
    ryanb committed May 18, 2011
Commits on May 17, 2011
  1. Merge pull request #363 from rahearn/mongoid-conditions-empty

    Fixes bug in mongoid_adapter with empty conditions hash
    ryanb committed May 17, 2011
Commits on May 12, 2011
  1. Processes can rules only if no empty conditions rules are present

    1) remove all empty conditions hashes from the rules, they are included
     in the records through `@model_class.all`
    2) only process can rules if the new and old rules lists are the same
      length (meaning there were no empty conditions hashes)
    3) always process cannot rules
    Ryan Ahearn committed May 12, 2011
Commits on May 10, 2011
  1. Fixes bug in mongoid_adapter with empty conditions hash

    * adds mongoid query that matches every record when
    rule.conditions.empty? is true
    Ryan Ahearn committed May 10, 2011
Commits on May 2, 2011
  1. Merge pull request #355 from emmanuel/issue/245.

    DataMapper adapter improvements
    ryanb committed May 2, 2011
Commits on Apr 29, 2011
  1. Return empty set early if no can rules are present.

    Thanks dkubb!
    emmanuel committed Apr 29, 2011
Commits on Apr 27, 2011
  1. Merged pull request #352 from cardagin/topic/mongoid-adapter-enhancem…

    …ents.
    
    Augments Mongoid adapter by handling case where attribute is an array
    ryanb committed Apr 27, 2011
Commits on Apr 25, 2011
  1. Merged pull request #343 from rahearn/mongoid-scope.

    Adds ability to use Scope query with Mongoid
    ryanb committed Apr 25, 2011
Commits on Apr 15, 2011
  1. Adds ability to use Scope query with Mongoid

    Same limitations apply as with active record
    * can not be OR'd with other rules for same ability/controller
    Ryan Ahearn committed Apr 15, 2011
Commits on Apr 1, 2011
  1. Merge branch 'optional-associations' of https://github.com/socialcast…

    …/cancan into socialcast-optional-associations
    ryanb committed Apr 1, 2011
  2. Fixed bug where conditions on an optionally associated object would t…

    …hrow exceptions if the associated object was not present at the rule match time.
    thatothermitch committed Apr 1, 2011
Commits on Mar 30, 2011
  1. releasing 1.6.4

    ryanb committed Mar 30, 2011
Commits on Mar 25, 2011
  1. releasing 1.6.3

    ryanb committed Mar 25, 2011
  2. make sure ActiveRecord::Relation is defined before checking condition…

    …s against it so Rails 2 is supported again - closes #312
    ryanb committed Mar 25, 2011
Commits on Mar 18, 2011
  1. releasing 1.6.2

    ryanb committed Mar 18, 2011