app/services/step_process.rb
def next_step
    return nil if current_step == steps.last

    steps[steps.index(current_step) + 1]
  end
# Returns the key of the next step from the current one
Returns the key of the next step from the current one
Returns the key of the next step from the current one
def next_step
    return nil if current_step == steps.last
    steps[steps.index(current_step) + 1]
  end
def next_step return nil if current_step == steps . last steps [ steps . index ( current_step ) + 1 ] end
Returns the key of the next step from the current one
Returns the key of the next step from the current one