app/models/questionnaire.rb in hackathon_manager-0.5.2 vs app/models/questionnaire.rb in hackathon_manager-0.5.3

- old
+ new

@@ -9,9 +9,13 @@ validates_presence_of :gender, :major, :level_of_study validates_presence_of :agreement_accepted, message: "Must accept" validates_presence_of :code_of_conduct_accepted, message: "Must accept" validates_presence_of :data_sharing_accepted, message: "Must accept" + if HackathonManager.field_enabled?(:why_attend) + validates_presence_of :why_attend + end + has_attached_file :resume validates_attachment_content_type :resume, content_type: %w[application/pdf], message: "Invalid file type" validates_attachment_size :resume, in: 0..2.megabytes, message: "File size is too big" include DeletableAttachment