Class: Decidim::Initiatives::Admin::InitiativeAttachmentsController

Inherits:
ApplicationController
  • Object
show all
Includes:
Admin::Concerns::HasAttachments, InitiativeAdmin
Defined in:
app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb

Overview

Controller that allows managing all the attachments for an initiative

Instance Method Summary collapse

Methods included from InitiativeSlug

#id_from_slug, #slug_from_id

Methods inherited from ApplicationController

#permission_class_chain, #permissions_context

Instance Method Details

#after_destroy_pathObject



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

def after_destroy_path
  initiative_attachments_path(current_initiative)
end

#attached_toObject



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

def attached_to
  current_initiative
end