Hello,

I need this mostly for testing, but what is the equivalent of "method_callable_by?" for transitions?

Currently, I am adding the following method to each of my models that have lifecycles:

     def transition_callable_by? user, name = nil
       lifecycle.available_transitions_for(user, name).count > 0
     end

Is there a better way to do this?

Thanks,
Henry

--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to