Class: Decidim::Elections::Trustees::NotifyTrusteeNewElectionEvent
- Inherits:
-
Decidim::Events::SimpleEvent
- Object
- Decidim::Events::SimpleEvent
- Decidim::Elections::Trustees::NotifyTrusteeNewElectionEvent
- Defined in:
- app/events/decidim/elections/trustees/notify_trustee_new_election_event.rb
Instance Method Summary collapse
-
#resource_name ⇒ Object
This event sends a notification when a new trustee gets an election.
Instance Method Details
#resource_name ⇒ Object
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 |