Sha256: 077d47e8dbc685b81353dfccea58a8df71cf75b1a6c7d84fa5cecfdce9db1679
Contents?: true
Size: 719 Bytes
Versions: 6
Compression:
Stored size: 719 Bytes
Contents
# frozen-string_literal: true module Decidim module EnhancedTextwork module Admin class ParagraphNoteCreatedEvent < Decidim::Events::SimpleEvent include Rails.application.routes.mounted_helpers i18n_attributes :admin_paragraph_info_url, :admin_paragraph_info_path def admin_paragraph_info_path ResourceLocatorPresenter.new(resource).show end def admin_paragraph_info_url decidim_admin_participatory_process_paragraphs.paragraph_url(resource, resource.component.mounted_params) end private def organization @organization ||= component.participatory_space.organization end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems