Permit.Actions.CrudActions (permit v0.3.0)

View Source

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

crud_grouping()

Convenience function defining the basic CRUD (create, read, update, delete) actions.

crud_singular()

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.