Sha256: 8e1ee1f229ed2e37e629cb6109556b285eff6672bb09c864b416c122097b9b39
Contents?: true
Size: 589 Bytes
Versions: 36
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true module Decidim module Budgets module Admin # Controller that allows managing all the attachments for a participatory # process. # class AttachmentsController < Admin::ApplicationController include Decidim::Admin::Concerns::HasAttachments def after_destroy_path budget_projects_path(project.budget) end def attached_to project end def project @project ||= Decidim::Budgets::Project.find(params[:project_id]) end end end end end
Version data entries
36 entries across 36 versions & 1 rubygems