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
event:investdotransitionfrom: :poor,to: :richdo |transition,stock:|
...
endendafter_transitionfrom: any_state,to: all_statesdo |transition,stock:|
puts"I was #{transition.from} and now I'm #{transition.to} thanks to #{stock}"end
However, while the stock: keyword argument passed to the #invest method on the state machine is accessible from within the transition block, it is not passed through to the after_transition block.
Ideally, the following should work:
However, while the
stock:
keyword argument passed to the#invest
method on the state machine is accessible from within the transition block, it is not passed through to theafter_transition
block.@getand fyi what we talked about yesterday
The text was updated successfully, but these errors were encountered: