Sha256: aff4fefe948b1f8f367e069ffde85ae1591935d1c1c958cf01c962faf28578ab
Contents?: true
Size: 718 Bytes
Versions: 39
Compression:
Stored size: 718 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim module Votings module Census # Definition of the fields required to be used on Datum forms for identity checking module CheckFields extend ActiveSupport::Concern included do include Decidim::Votings::Census::InPersonFields attribute :postal_code, String validates :postal_code, presence: true end # hash of postal code, birth, document type and number # used by a person to check if present in dataset def hashed_check_data hash_for document_number, document_type, birthdate, postal_code end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems