PaperTrail.Serializer (paper_trail v0.10.9)

Link to this section Summary

Link to this section Types

@type options() :: PaperTrail.options()

Link to this section Functions

Link to this function

add_prefix(changeset, prefix)

Link to this function

do_serialize(model, options, event, changed_fields \\ nil)

@spec do_serialize(struct(), options(), String.t(), [atom()] | nil) :: map()
Link to this function

get_item_type(arg1)

Link to this function

get_model_id(model)

Link to this function

get_sequence_from_model(changeset, options \\ [])

Link to this function

get_sequence_id(table_name, options)

Link to this function

make_version_struct(map, model, options)

Link to this function

make_version_structs(map, queryable, changes, options)

@spec make_version_structs(
  map(),
  PaperTrail.queryable(),
  Keyword.t() | map(),
  PaperTrail.options()
) ::
  [map()]
Link to this function

serialize(model, options, event \\ "insert")

@spec serialize(
  nil | Ecto.Changeset.t() | struct() | [Ecto.Changeset.t() | struct()],
  options(),
  String.t()
) :: nil | map() | [map()]