Class: Decidim::Proposals::Admin::ProposalNoteCreatedEvent

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

Instance Method Summary collapse

Instance Method Details

#admin_proposal_info_pathObject



11
12
13
# File 'app/events/decidim/proposals/admin/proposal_note_created_event.rb', line 11

def admin_proposal_info_path
  ResourceLocatorPresenter.new(resource).show
end

#admin_proposal_info_urlObject



15
16
17
# File 'app/events/decidim/proposals/admin/proposal_note_created_event.rb', line 15

def admin_proposal_info_url
  send(resource.component.mounted_admin_engine).proposal_url(resource, resource.component.mounted_params)
end