View Source Permit.Phoenix.Actions (permit_phoenix v0.2.0)
Extends the predefined Permit.Actions.CrudActions
module and defines the following action mapping - usually applicable for most Phoenix applications:
Action | Required permission |
---|---|
:index | :read |
:show | :read |
:edit | :update |
:new | :create |
:delete | itself |
:update | itself |
:create | itself |
For more information on defining and mapping actions, see Permit.Actions
documentation.
Link to this section Summary
Functions
Convenience function defining the basic CRUD (create, read, update, delete) actions.
Convenience function returning actions that are singular in the most basic CRUD setup, in which case
all of: :create
, :read
, :update
and :delete
are singular.
Link to this section Functions
Convenience function defining the basic CRUD (create, read, update, delete) actions.
Convenience function returning actions that are singular in the most basic CRUD setup, in which case
all of: :create
, :read
, :update
and :delete
are singular.