View Source Permit.Actions.CrudActions (permit v0.2.1)

Extends the predefined Permit.Actions module and defines the following action mapping:

ActionRequired permission
:createitself
:readitself
:deleteitself
:updateitself

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.