Sha256: b188577626082bce3240ff3ab5697c6926ca4c6863fbdc9ea16fbcd1702f9759
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 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("INNER JOIN decidim_budgets_budgets budget ON budget.id = decidim_budgets_projects.decidim_budgets_budget_id") .where(budget: { component: current_component }).find(params[:project_id]) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems