Browse Source

Add missing end

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

11
app/models/form/question.rb

@ -173,6 +173,17 @@ class Form::Question
type == "radio" && RADIO_REFUSED_VALUE[id.to_sym]&.include?(value)
end
def display_label
check_answer_label || header || id.humanize
end
def unanswered_error_message
return I18n.t("validations.declaration.missing") if id == "declaration"
I18n.t("validations.not_answered", question: display_label.downcase)
end
def suffix_label(case_log)
return "" unless suffix
return suffix if suffix.is_a?(String)

Loading…
Cancel
Save