We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to abort/halt a transition whilst inside a around_transition. The example I have here is:
around_transition
around_transition do |cost_item, transition, block| if ticket.access_keys.any?(&:full?) # abort transition! false else block.call ticket.send(:redeem_access_key, transition) end end
Is returning false sufficient. According to the readme and the rubydoc there is no mention of this:
false
http://www.rubydoc.info/github/pluginaweek/state_machine/StateMachine%2FMachine%3Aaround_transition
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is it possible to abort/halt a transition whilst inside a
around_transition
. The example I have here is:Is returning
false
sufficient. According to the readme and the rubydoc there is no mention of this:http://www.rubydoc.info/github/pluginaweek/state_machine/StateMachine%2FMachine%3Aaround_transition
The text was updated successfully, but these errors were encountered: