Skip to content
Michael Nikitochkin edited this page Jul 6, 2024 · 1 revision

Example authorizations for cancan:

  # with
  alias_action :update, :destroy, :create, :to => :write

  can :manage, :all
  # includes
  can :write, :all
  # includes
  can :create, Model
  # equals
  can :new, Model
  # includes
  can :create, Model, { default_attributes }

More here

Clone this wiki locally