Sha256: 03209792be17a371fd4f5560f6c24a0ab62757b28fd123d2f9bf2e6642722b7e

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Elections
    module Trustees
      class NotifyTrusteeNewElectionEvent < Decidim::Events::SimpleEvent
        # This event sends a notification when a new trustee gets an election.
        def resource_name
          @resource_name ||= translated_attribute(election.title)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-elections-0.28.5 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.4 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.3 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.2 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.1 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.0 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.0.rc5 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
decidim-elections-0.28.0.rc4 app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb