Class: Decidim::Proposals::AcceptedProposalEvent

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

Instance Method Summary collapse

Instance Method Details

#event_has_roles?Boolean

Returns:

  • (Boolean)

12
13
14
# File 'decidim-proposals/app/events/decidim/proposals/accepted_proposal_event.rb', line 12

def event_has_roles?
  true
end

#resource_textObject


8
9
10
# File 'decidim-proposals/app/events/decidim/proposals/accepted_proposal_event.rb', line 8

def resource_text
  translated_attribute(resource.answer)
end