simple_ecto_state_machine v0.3.0 SimpleEctoStateMachine.Utils

Methods that include the logic for validating transitions and executing callbacks.

Summary

Functions

Determines if the changes included in changeset are valid depending on the opts provided. The arg argument will be passed to the callback if present

Functions

execute_transition_if_valid(changeset, arg, map)

Determines if the changes included in changeset are valid depending on the opts provided. The arg argument will be passed to the callback if present.