Class: Decidim::Proposals::ProposalEndorsedEvent

Inherits:
Events::SimpleEvent
  • Object
show all
Defined in:
decidim-proposals/app/events/decidim/proposals/proposal_endorsed_event.rb

Instance Method Summary collapse

Instance Method Details

#endorser_pathObject


14
15
16
# File 'decidim-proposals/app/events/decidim/proposals/proposal_endorsed_event.rb', line 14

def endorser_path
  endorser.profile_path
end

#nicknameObject


10
11
12
# File 'decidim-proposals/app/events/decidim/proposals/proposal_endorsed_event.rb', line 10

def nickname
  endorser_nickname
end

#resource_textObject


18
19
20
# File 'decidim-proposals/app/events/decidim/proposals/proposal_endorsed_event.rb', line 18

def resource_text
  resource.body
end