ash v1.24.1 Ash.Resource.Change.Builtins View Source

Built in changes that are available to all resources

The functions in this module are imported by default in the actions section.

Link to this section Summary

Functions

A helper for builting filter templates

Relates the actor to the data being changed, as the provided relationship.

Sets the attribute to the value provided. If a zero argument function is provided, it is called to determine the value.

Link to this section Functions

A helper for builting filter templates

Link to this function

relate_actor(relationship)

View Source

Relates the actor to the data being changed, as the provided relationship.

Link to this function

set_attribute(attribute, value)

View Source

Sets the attribute to the value provided. If a zero argument function is provided, it is called to determine the value.