Sha256: bfa85be840494b1eb1e3906292942bf2128683a68202d0254763e148fc4cbf59

Contents?: true

Size: 606 Bytes

Versions: 13

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    module Admin
      # Controller that allows managing all the attachments for an initiative
      class InitiativeAttachmentsController < Decidim::Initiatives::Admin::ApplicationController
        include InitiativeAdmin
        include Decidim::Admin::Concerns::HasAttachments

        add_breadcrumb_item_from_menu :admin_initiative_menu

        def after_destroy_path
          initiative_attachments_path(current_initiative)
        end

        def attached_to
          current_initiative
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-initiatives-0.29.1 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.4 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.29.0 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.3 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.29.0.rc4 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.29.0.rc3 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.29.0.rc2 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.29.0.rc1 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.2 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.1 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.0 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.0.rc5 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb
decidim-initiatives-0.28.0.rc4 app/controllers/decidim/initiatives/admin/initiative_attachments_controller.rb