Browse Source

Rubocop

pull/740/head
baarkerlounger 3 years ago committed by JG
parent
commit
e5b1d7f509
  1. 7
      app/models/form/question.rb

7
app/models/form/question.rb

@ -173,7 +173,6 @@ class Form::Question
type == "radio" && RADIO_REFUSED_VALUE[id.to_sym]&.include?(value) type == "radio" && RADIO_REFUSED_VALUE[id.to_sym]&.include?(value)
end end
def display_label def display_label
check_answer_label || header || id.humanize check_answer_label || header || id.humanize
end end
@ -202,12 +201,6 @@ class Form::Question
label label
end end
def unanswered_error_message
return I18n.t("validations.declaration.missing") if id == "declaration"
I18n.t("validations.not_answered", question: display_label.downcase)
end
private private
def selected_answer_option_is_derived?(case_log) def selected_answer_option_is_derived?(case_log)

Loading…
Cancel
Save