Skip to content
This repository

Mar 25, 2011

  1. Ryan Bates

    releasing 1.6.3

    authored
  2. Ryan Bates

    make sure ActiveRecord::Relation is defined before checking condition…

    …s against it so Rails 2 is supported again - closes #312
    authored
  3. Ryan Bates

    return subject passed to authorize! - closes #314

    authored

Mar 18, 2011

  1. Ryan Bates

    releasing 1.6.2

    authored
  2. Ryan Bates

    fixing instance loading with :singleton option - closes #310

    authored
  3. Ryan Bates

    fixing failing MetaWhere spec

    authored

Mar 16, 2011

  1. Ryan Bates

    releasing 1.6.1

    authored
  2. Ryan Bates

    use Item.new instead of build_item for singleton resource so it doesn…

    …'t mess up database - closes #304
    authored
  3. Ryan Bates

    making accessible_by action default to :index and parent action defau…

    …lt to :show so we don't check :read action directly - closes #302
    authored
  4. Adam Wróbel

    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 authored

Mar 11, 2011

  1. Ryan Bates

    releasing 1.6.0

    authored

Mar 09, 2011

  1. Ryan Bates

    adding any/all support for MetaWhere conditions

    authored
  2. Ryan Bates

    adding more MetaWhere comparison operators

    authored
  3. Ryan Bates

    Merge branch 'master' into meta_where

    authored
  4. Ryan Bates

    raise an error when trying to make a rule with both hash conditions a…

    …nd a block - closes #269
    authored
  5. Ryan Bates

    allow Active Record scope to be passed as Ability conditions - closes #…

    authored
  6. Ryan Bates

    adding :if and :unless options to check_authorization - closes #284

    authored
  7. Ryan Bates

    load collection resources in custom controller actions with no id par…

    …am - closes #296
    authored

Mar 08, 2011

  1. Ryan Bates

    add space in multiword model in I18n unauthorized message - closes #292

    authored
  2. Ryan Bates

    adding :prepend option to load_and_authorize_resource - closes #290

    authored
  3. Ryan Bates

    fixing spec for Inherited Resource parent loading

    authored
  4. Ryan Bates

    Merge branch 'master' of https://github.com/stefanoverna/cancan into …

    …stefanoverna-master
    authored
  5. Ryan Bates

    Merge branch 'inherited_resources_collection_fix' of https://github.c…

    …om/tanordheim/cancan into tanordheim-inherited_resources_collection_fix
    authored
  6. Ryan Bates

    simplifying .rvmrc

    authored
  7. Ryan Bates

    raise a NotImplemented exception if it's an unrecognized MetaWhere co…

    …ndition
    authored
  8. Ryan Bates

    making it easier to test all MetaWhere conditions

    authored
  9. Ryan Bates

    adding initial MetaWhere support

    authored
  10. Ryan Bates

    fixing association conditions when MetaWhere is installed (thanks acm…

    …etech) - closes #261
    authored
  11. Trond Arve Nordheim

    Use collection instead of end_of_association_chain in the inherited_r…

    …esources integration, as per suggested by aq1018
    tanordheim authored

Feb 22, 2011

  1. Ryan Bates

    adding Lock It Down section to readme

    authored

Feb 17, 2011

  1. Stefano Verna

    Fix for deeply nested resources when using inherited resources

    stefanoverna authored

Feb 14, 2011

  1. Ryan Bates

    fixing tests for passing action name through to accessible_by call

    authored
  2. Ryan Bates

    Merge branch 'pass_action_to_accessible_by' of https://github.com/amw…

    …/cancan into amw-pass_action_to_accessible_by
    authored

Feb 04, 2011

  1. Sam Pohlenz

    Fix rule check on Hash-like subjects

    spohlenz authored

Feb 03, 2011

  1. Adam Wróbel

    Pass action name to accessible_by.

    amw authored
Something went wrong with that request. Please try again.