Sha256: c08405b5336feeb5629c55a777cc5a9c5d44a1fa5fd3de636098cd30956bb241
Contents?: true
Size: 592 Bytes
Versions: 31
Compression:
Stored size: 592 Bytes
Contents
# frozen-string_literal: true module Decidim module Elections module Votes class VoteAcceptedEvent < Decidim::Events::SimpleEvent # This event sends a notification with the vote hash and further instructions i18n_attributes :resource_name, :encrypted_vote_hash, :verify_url def resource_name @resource_name ||= translated_attribute(resource.title) end def encrypted_vote_hash extra[:vote]["encrypted_vote_hash"] end def verify_url extra[:verify_url] end end end end end
Version data entries
31 entries across 31 versions & 1 rubygems