Commits on Mar 25, 2011
  1. releasing 1.6.3

    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
    committed Mar 25, 2011
Commits on Mar 18, 2011
  1. releasing 1.6.2

    committed Mar 18, 2011
  2. fixing failing MetaWhere spec

    committed Mar 18, 2011
Commits on Mar 16, 2011
  1. releasing 1.6.1

    committed Mar 15, 2011
  2. use Item.new instead of build_item for singleton resource so it doesn…

    …'t mess up database - closes #304
    committed Mar 15, 2011
  3. making accessible_by action default to :index and parent action defau…

    …lt to :show so we don't check :read action directly - closes #302
    committed Mar 15, 2011
  4. @amw

    Fixes inherited_resources collection authorization

    This reverts e3eab13
    
    I don't know what was the idea of that, but it turned out REAL bad.
    
    `collection` sets the collection instance variable. `resource_base` is used all
    over CanCan. It's also used inside `load_collection?` which is checked before
    `load_collection` is called. That means we actually set the collection instance
    variable through inherited_resources (without any authorization whatsoever) before trying to load it through CanCan using `accessible_by`.
    
        1. def load_resource
        2.  unless skip?(:load)
        3.    if load_instance?
        4.      self.resource_instance ||= load_resource_instance
        5.    elsif load_collection?
        6.      self.collection_instance ||= load_collection
        7.    end
        8.  end
        9. end
    
    `collection_instance` is set on line 5 instead of line 6.
    amw committed Mar 16, 2011
Commits on Mar 11, 2011
  1. releasing 1.6.0

    committed Mar 10, 2011
Commits on Mar 9, 2011
Commits on Mar 8, 2011
  1. Merge branch 'master' of https://github.com/stefanoverna/cancan into …

    …stefanoverna-master
    committed Mar 8, 2011
  2. Merge branch 'inherited_resources_collection_fix' of https://github.c…

    …om/tanordheim/cancan into tanordheim-inherited_resources_collection_fix
    committed Mar 8, 2011
  3. simplifying .rvmrc

    committed Mar 8, 2011
  4. adding initial MetaWhere support

    committed Mar 8, 2011
  5. @tanordheim

    Use collection instead of end_of_association_chain in the inherited_r…

    …esources integration, as per suggested by aq1018
    tanordheim committed Mar 8, 2011
Commits on Feb 22, 2011
Commits on Feb 17, 2011
  1. @stefanoverna
Commits on Feb 14, 2011
  1. Merge branch 'pass_action_to_accessible_by' of https://github.com/amw…

    …/cancan into amw-pass_action_to_accessible_by
    committed Feb 14, 2011
Commits on Feb 4, 2011
  1. @spohlenz
Commits on Feb 3, 2011
  1. @amw

    Pass action name to accessible_by.

    amw committed Feb 3, 2011