app/models/concerns/state_transition_support.rb
# Returns true if the current state is at or after the given state in the workflow
Returns true if the current state is at or after the given state in the workflow
Returns true if the current state is at or after the given state in the workflow
def state_reached?(state)
      states = states_events.map { |se| se[0] }
      if states.index(current_state) && states.index(state)
        states.index(current_state) >= states.index(state)
      end
    end
def state_reached? ( state ) states = states_events . map { | se | se [ 0 ] } if states . index ( current_state ) && states . index ( state ) states . index ( current_state ) >= states . index ( state ) end end
Returns true if the current state is at or after the given state in the workflow
Returns true if the current state is at or after the given state in the workflow
state
<not_specific>