Class: Decidim::Admin::ParticipatoryProcessAttachmentsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Concerns::HasAttachments, Concerns::ParticipatoryProcessAdmin
Defined in:
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

Instance Method Details

#attached_toObject



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

def attached_to
  participatory_process
end

#authorization_objectObject



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

def authorization_object
  @attachment || Attachment
end