I have 2 events:
event :event1, after: :event2! do
transitions to: :state2, from: :state1, guard: proc {some func}
transitions to: :state3, from: :state1
end
event :event2 do
transitions to: :state3, from: state2, guard: proc {some func}
end
How can I set after callback for first transition only in event1? (I cann't replace second transition to other event)
I tried
event :event1 do
transitions to: :state2, from: :state1, after: :event2!, guard: proc {some func}
transitions to: :state3, from: :state1
end
But it not working