Skip to content
bbenezech edited this page Feb 6, 2012 · 3 revisions

Example authorizations for cancan:

  # with
  alias_action :update, :destroy, :create, :to => :write
  
  can :manage, :all
  # includes
  can :write, :all
  # includes
  can :write, Model
  # includes
  can :update, Model
  # includes
  can :update, Model, { conditions_and_default_attributes }

More here

Clone this wiki locally