Class: Decidim::Elections::Trustees::NotifyTrusteeNewElectionEvent

Inherits:
Decidim::Events::SimpleEvent
  • Object
show all
Defined in:
app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb

Instance Method Summary collapse

Instance Method Details

#resource_nameObject

This event sends a notification when a new trustee gets an election.



8
9
10
# File 'app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb', line 8

def resource_name
  @resource_name ||= translated_attribute(election.title)
end