Method: Control::State#next

Defined in:
lib/control/state.rb

#nextObject

Get the next state

Returns:

  • next state object



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