Caravela.Policy.ActionGate (Caravela v0.6.0)

Copy Markdown View Source

A policy allow :action, fn ... end rule. action is one of :create, :update, :delete. arity is 1 or 2.

Summary

Types

action()

@type action() :: :create | :update | :delete

t()

@type t() :: %Caravela.Policy.ActionGate{
  action: action(),
  arity: 1 | 2,
  entity: atom()
}