The default Pundit policy that all other policies should inherit from.
Should you with to update the default policy definitions, run lucky pundit.init and override where needed.
Constructors
new(user :
User |
Nil, record :
T |
Nil = nil)
Swap out User for your user class, if needed!
SourceInstance methods
create?
Whether or not the Create action can be accessed
Sourcedelete?
Whether or not the Delete action can be accessed
Sourceedit?
Whether or not the Edit action can be accessed
Sourceindex?
Whether or not the Index action can be accessed
Sourcenew?
Whether or not the New action can be accessed
Sourceshow?
Whether or not the Show action can be accessed
Sourceupdate?
Whether or not the Update action can be accessed
Source