Browse Source

Delete check_answers_summary_list_card_component.rb

pull/832/head
Ted-U 3 years ago committed by GitHub
parent
commit
250a301344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      app/components/check_answers_summary_list_card_component.rb

18
app/components/check_answers_summary_list_card_component.rb

@ -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 || "<span class=\"app-!-colour-muted\">You didn’t answer this question</span>".html_safe
end
end
Loading…
Cancel
Save