View Source Ash.Resource.Igniter (ash v3.4.1)

Codemods for working with Ash.Resource modules

Summary

Functions

Adds the given code block to the resource's actions block

Adds the given code block to the resource's attributes block

Gets the domain from the given resource module

List all resource modules found in the project

Functions

Link to this function

add_action(igniter, resource, action)

View Source

Adds the given code block to the resource's actions block

Link to this function

add_attribute(igniter, resource, attribute)

View Source

Adds the given code block to the resource's attributes block

Link to this function

domain(igniter, resource)

View Source
@spec domain(Igniter.t(), Ash.Resource.t()) ::
  {:ok, Igniter.t(), Ash.Domain.t()} | {:error, Igniter.t()}

Gets the domain from the given resource module

List all resource modules found in the project