Sha256: af45e3712ab112862ee8f98f7564c4c38ed0096565760a097391d8bf5c9ce439

Contents?: true

Size: 639 Bytes

Versions: 20

Compression:

Stored size: 639 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Budgets
    module Admin
      # Controller that allows managing all the attachment collections for a budget.
      #
      class AttachmentCollectionsController < Admin::ApplicationController
        include Decidim::Admin::Concerns::HasAttachmentCollections

        def after_destroy_path
          project_attachment_collections_path(project, project.component, current_participatory_space)
        end

        def collection_for
          project
        end

        def project
          @project ||= projects.find(params[:project_id])
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-budgets-0.22.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.21.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.20.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.20.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.19.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.18.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.19.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.17.2 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.18.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.17.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.16.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.17.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.16.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.15.2 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.15.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.15.0 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.14.4 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.14.3 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.14.2 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb
decidim-budgets-0.14.1 app/controllers/decidim/budgets/admin/attachment_collections_controller.rb