You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to use multiple callbacks in order to support things like Ecto.Multi. So instead of just having a :callback which needs to call :validate_state_transition which expects an Ecto.Changeset, you have :before_transition and an :after_transition.
Would be nice to use multiple callbacks in order to support things like
Ecto.Multi
. So instead of just having a :callback which needs to call :validate_state_transition which expects anEcto.Changeset
, you have :before_transition and an :after_transition.This allows you to do
Now you can call
User.confirm(params)
and the params supplied will get applied to the transition functions.The text was updated successfully, but these errors were encountered: