Class: Decidim::Admin::ParticipatoryProcessAttachmentsController
Overview
Controller that allows managing all the attachments for a participatory process.
Instance Method Summary
collapse
#current_ability_klass, #user_not_authorized_path
Instance Method Details
#after_destroy_path ⇒ Object
14
15
16
|
# File 'app/controllers/decidim/admin/participatory_process_attachments_controller.rb', line 14
def after_destroy_path
participatory_process_attachments_path(current_participatory_process.id)
end
|
#attached_to ⇒ Object
18
19
20
|
# File 'app/controllers/decidim/admin/participatory_process_attachments_controller.rb', line 18
def attached_to
current_participatory_process
end
|
#authorization_object ⇒ Object
22
23
24
|
# File 'app/controllers/decidim/admin/participatory_process_attachments_controller.rb', line 22
def authorization_object
@attachment || Attachment
end
|