Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 414 Bytes

File metadata and controls

18 lines (15 loc) · 414 Bytes

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