Proca.Action (proca v3.0.2)

Record for action done by supporter. Supporter can have many actions, but actions can be created without a supporter with intention, to match them later to supporter record. This can come handy when we need to create actions for user, but will gather personal data later. It is possible to use ref field to match action to supporter later.

Link to this section Summary

Functions

Creates action for supporter. Supporter can be a struct, or reference (binary)

Links actions with a particular ref with provided supporter.

Validate that change is a

Link to this section Functions

Link to this function

build_for_supporter(attrs, supporter, action_page)

Creates action for supporter. Supporter can be a struct, or reference (binary)

Link to this function

clear_transient_fields_query(action)

Link to this function

confirm(action)

Link to this function

get_by_id(action_id)

Link to this function

get_by_id_and_ref(action_id, ref)

Link to this function

validate_flat_map(changeset, fieldname)

Specs

validate_flat_map(Ecto.Changeset.t(), atom()) :: Changeset.t()

Validate that change is a:

  • map
  • keys are strings
  • values are strings, numbers, or lists of strings and numbers