Ecto.Model.Callbacks.__apply__/3

Parsed documentation:
View on GitHub
Applies stored callbacks in model to given data.

Checks wether the callback is defined on the model,
returns the data unchanged if it isn't.

This function expects a changeset as input.

## Examples

    iex> changeset = Ecto.Changeset.cast(params, %User{}, ~w(name), ~w())
    iex> Ecto.Model.Callbacks.__apply__ User, :before_delete, changeset
    %Ecto.Changeset{...}
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.