Class: Decidim::Elections::Trustees::NotifyNewTrusteeEvent

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

Instance Method Summary collapse

Instance Method Details

#participatory_spaceObject



18
19
20
# File 'app/events/decidim/elections/trustees/notify_new_trustee_event.rb', line 18

def participatory_space
  @participatory_space ||= resource
end

#resource_nameObject



14
15
16
# File 'app/events/decidim/elections/trustees/notify_new_trustee_event.rb', line 14

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

#trustee_zone_urlObject



22
23
24
# File 'app/events/decidim/elections/trustees/notify_new_trustee_event.rb', line 22

def trustee_zone_url
  url_helpers.decidim_elections_trustee_zone_url(host: organization.host)
end