View Source AshCloak (ash_cloak v0.1.2)

An extension for encrypting attributes of a resource.

See the getting started guide for more information.

Summary

Functions

Hello!

Encrypts and writes to an encrypted attribute.

Functions

Hello!

Link to this function

encrypt_and_set(changeset, key, value)

View Source
@spec encrypt_and_set(Ash.Changeset.t(), attr :: atom(), term :: term()) ::
  Ash.Changeset.t()

Encrypts and writes to an encrypted attribute.

If the changeset is pending (i.e not currently running the action), then it is added as a before_action hook. Otherwise, it is run immediately