-
Notifications
You must be signed in to change notification settings - Fork 521
Open
Description
Is it possible to abort/halt a transition whilst inside a around_transition. The example I have here is:
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
endIs 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels