Edit action

bbenezech edited this page Feb 6, 2012 · 3 revisions
Clone this wiki locally

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