Method: Control::State#next
- Defined in:
- lib/control/state.rb
#next ⇒ Object
Get the next state
75 76 77 78 |
# File 'lib/control/state.rb', line 75 def next transition = workflow.transitions.where(:from_class => self.class, :from_id => self.id).first transition.to if transition end |