Sha256: 67e907d9ec68df019a40246cea9a23c20745ce2d058b3714602cf262b43a5176
Contents?: true
Size: 719 Bytes
Versions: 23
Compression:
Stored size: 719 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 ||= Decidim::Budgets::Project.joins(:budget).where(budget: { component: current_component }).find(params[:project_id]) end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems