Skip to content
Commits on May 25, 2010
  1. add test for single `cannot` definition

    Yura Sokolov committed May 25, 2010
  2. fix logic error for single `cannot` condition - it should return no r…

    …ecords
    Yura Sokolov committed May 25, 2010
  3. add tests for merging conditions and joins

    Yura Sokolov committed May 25, 2010
  4. can accept array for sql sanitizing in conditions

    Yura Sokolov committed May 25, 2010
  5. CanDefinition#only_block?

    Yura Sokolov committed May 25, 2010
  6. fix error with single cannot condition

    Yura Sokolov committed May 25, 2010
Commits on May 24, 2010
  1. Merge remote branch 'upstream/master'

    Conflicts:
    	lib/cancan/ability.rb
    	lib/cancan/active_record_additions.rb
    	lib/cancan/can_definition.rb
    	spec/cancan/ability_spec.rb
    Yura Sokolov committed May 24, 2010
Commits on May 21, 2010
  1. adding :name option to load_and_authorize_resource if it does not mat…

    …ch controller - closes #65
    committed May 21, 2010
  2. improving inline documentation

    committed May 21, 2010
Commits on May 20, 2010
  1. @logandk
Commits on May 16, 2010
  1. @funny-falcon

    passing throw matching rules with not matching conditions

    Main goal is to allow:
    
    cannot :manage, :all
    can :read, :all
    can :manage, User, :id=>user.id
    can :manage, User, :manager_id=>user.id
    
    Signed-off-by: Sokolov Yura <funny.falcon@gmail.com>
    funny-falcon committed May 16, 2010
Commits on Apr 23, 2010
Commits on Apr 21, 2010
Commits on Apr 20, 2010
Commits on Apr 18, 2010
Commits on Apr 17, 2010
  1. releasing 1.1.1 which fixes behavior in Rails 3 by properly initializ…

    …ing ResourceAuthorization
    committed Apr 17, 2010
  2. minor changes to readme

    committed Apr 17, 2010
Commits on Apr 16, 2010
  1. allow access to classes when using hash conditions since you'll gener…

    …ally want to narrow it down with a database query
    committed Apr 16, 2010
  2. removing unauthorized! in favor of authorize! and including more info…

    …rmation in AccessDenied exception - closes #40
    committed Apr 16, 2010
  3. renaming ActiveRecordAdditions#can method to accessible_by since it f…

    …lows better and makes more sense
    committed Apr 15, 2010
  4. adding caching to current_ability class method, if you're overriding …

    …this be sure to add caching there too
    committed Apr 15, 2010
  5. default ActiveRecordAdditions#can method action to :read and use 'sco…

    …ped' if 'where' is not available
    committed Apr 15, 2010
  6. adding can method to Active Record for fetching records matching a sp…

    …ecific ability, still needs documentation
    committed Apr 15, 2010
Commits on Apr 15, 2010
  1. renaming :class option to :resource for load_and_authorize_resource w…

    …hich now supports a symbol for non models - closes #45
    committed Apr 15, 2010
Something went wrong with that request. Please try again.