app/services/c100_app/permission_decision_tree.rb
def advance_or_exit_journey(next_question:)
      return exit_journey if question(step_name, record).yes?

      edit(:question, question_name: next_question, relationship_id: record)
    end
# Exit the questions journey the moment we get a `yes` answer,
# otherwise we keep asking questions until we reach the end.
Exit the questions journey the moment we get a `yes` answer,
otherwise we keep asking questions until we reach the end.
Exit the questions journey the moment we get a ` yes ` answer otherwise we keep asking questions until we reach the end .
def advance_or_exit_journey(next_question:)
      return exit_journey if question(step_name, record).yes?
      edit(:question, question_name: next_question, relationship_id: record)
    end
def advance_or_exit_journey ( next_question : ) return exit_journey if question ( step_name , record ) . yes? edit ( :question , question_name : next_question , relationship_id : record ) end
Exit the questions journey the moment we get a `yes` answer,
otherwise we keep asking questions until we reach the end.
Exit the questions journey the moment we get a ` yes ` answer otherwise we keep asking questions until we reach the end .
next_question