View Source Permit.Actions.CrudActions (permit v0.2.0)
Extends the predefined Permit.Actions
module and defines the following action mapping:
Action | Required permission |
---|---|
:create | itself |
:read | itself |
:delete | itself |
:update | itself |
For more information on defining and mapping actions, see Permit.Actions
documentation.
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.
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.