Class: Decidim::Admin::ParticipatoryProcessAttachmentsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Concerns::HasAttachments, Concerns::ParticipatoryProcessAdmin
Defined in:
decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb

Overview

Controller that allows managing all the attachments for a participatory process.

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_ability_klass, #user_not_authorized_path

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#after_destroy_pathObject



12
13
14
# File 'decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb', line 12

def after_destroy_path
  participatory_process_attachments_path(current_participatory_process.id)
end

#attached_toObject



16
17
18
# File 'decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb', line 16

def attached_to
  current_participatory_process
end

#authorization_objectObject



20
21
22
# File 'decidim-admin/app/controllers/decidim/admin/participatory_process_attachments_controller.rb', line 20

def authorization_object
  @attachment || Attachment
end