Current section

Files

Jump to
ash_state_machine lib builtin_changes transition_state.ex
Raw

lib/builtin_changes/transition_state.ex

defmodule AshStateMachine.BuiltinChanges.TransitionState do
@moduledoc """
Transitions the state to a new state, validating the transition.
"""
use Ash.Resource.Change
def change(changeset, opts, _) do
AshStateMachine.transition_state(changeset, opts[:target])
end
end