View Source Ash.Registry.Dsl (ash v2.7.1)
A small DSL for declaring an Ash.Registry
.
Ash.Registry
can be used generically, but the main way it is used in Ash is to provide a compile-time registry for an Ash Api.
dsl-documentation
DSL Documentation
index
Index
- entries
- entry
docs
Docs
entries
entries
List the entries present in this registry
Examples:
entries do
entry MyApp.User
entry MyApp.Post
entry MyApp.Comment
end
:warn_on_empty?
(boolean/0
) - Set tofalse
to ignore warnings about an empty registry The default value istrue
.
entry
entry
A reference to an ash module (typically a resource)
Examples:
entry MyApp.User
:entry
(atom/0
) - Required. The referenced module