Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Easy default callback?

15 views
Skip to first unread message

apneadiving

unread,
Mar 6, 2013, 6:26:25 PM3/6/13
to pluginaw...@googlegroups.com
Hi,

I have a state_machine with callbacks. So far so good.

Is there a way to have default callback?

Ie:

around_transition from: :a, to: :c, do: :callback
default_callback :around, :default_callback_name

default_callback_name would be triggered for transitions from :a to :b and from :b to :c.
But not triggered from :a to :c since an explicit callback exists.

I guess it's not out if the box but do you see an easy way to mimic that?

Thanks,

Ben

Reply all
Reply to author
Forward
0 new messages