app/forms/decidim/votings/census/admin/datum_form.rb in decidim-elections-0.26.1 vs app/forms/decidim/votings/census/admin/datum_form.rb in decidim-elections-0.26.2

- old
+ new

@@ -15,12 +15,16 @@ attribute :full_address, String attribute :mobile_phone_number, String attribute :email, String attribute :ballot_style_code, String + validates :birthdate, format: { with: /\A\d{8}\z/ } + validates :full_name, :full_address, + :birthdate, presence: true + def ballot_style_code @ballot_style_code&.upcase end end end