From 250a3013449cff945f8ce326eea7dd62eb36a9c2 Mon Sep 17 00:00:00 2001 From: Ted-U <92022120+Ted-U@users.noreply.github.com> Date: Fri, 12 Aug 2022 16:20:44 +0100 Subject: [PATCH] Delete check_answers_summary_list_card_component.rb --- ...heck_answers_summary_list_card_component.rb | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 app/components/check_answers_summary_list_card_component.rb diff --git a/app/components/check_answers_summary_list_card_component.rb b/app/components/check_answers_summary_list_card_component.rb deleted file mode 100644 index 0ae6afcac..000000000 --- a/app/components/check_answers_summary_list_card_component.rb +++ /dev/null @@ -1,18 +0,0 @@ -class CheckAnswersSummaryListCardComponent < ViewComponent::Base - attr_reader :questions, :case_log, :user - - def initialize(questions:, case_log:, user:) - @questions = questions - @case_log = case_log - @user = user - super - end - - def applicable_questions - questions.reject { |q| q.hidden_in_check_answers?(case_log, user) } - end - - def get_answer_label(question) - question.answer_label(case_log).presence || "You didn’t answer this question".html_safe - end -end