Sha256: 1ee814d831b659b395dfaf7a157bb8b40ca46cc97708340f883fb23ecc936e96
Contents?: true
Size: 737 Bytes
Versions: 38
Compression:
Stored size: 737 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 online voting module OnlineFields extend ActiveSupport::Concern included do include Decidim::Votings::Census::CheckFields include Decidim::Votings::Census::FrontendFields attribute :access_code, String validates :access_code, presence: true end # hash of hashed_check_data and access code # used by a voter to identify before online voting def hashed_online_data hash_for hashed_check_data, access_code end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems