View Source Rivet.Ident.Email.Lib (rivet_ident v3.0.1)

Summary

Functions

Helper function which accepts either user_id or user, and calls the passed function with the user model loaded including any preloads. Send preloads as [] if none are desired.

Types

@type ecto_p_result() :: {:ok | :error, Ecto.Changeset.t()}
@type model_p_result() :: {:ok, Rivet.Ident.Email.t()}

Functions

Link to this function

with_email(email, preloads, func)

View Source

Helper function which accepts either user_id or user, and calls the passed function with the user model loaded including any preloads. Send preloads as [] if none are desired.