Sha256: 908cf8c9fb057e7100ceed6d0b1f042d8fe62b7c6bdf05d42b8ca7b9b6a34602
Contents?: true
Size: 750 Bytes
Versions: 11
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings module Census module Admin # A form object used to create a datum record (participant) for # a voting census class DatumForm < Form mimic :datum include Decidim::Votings::Census::CheckFields attribute :full_name, String attribute :full_address, String attribute :mobile_phone_number, String attribute :email, String attribute :ballot_style_code, String validates :full_name, :full_address, presence: true def ballot_style_code @ballot_style_code&.upcase end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems