Sha256: ecce08e66a40241756c17a546c18e625e42baa20499379031549ad7ff4cb8ccc

Contents?: true

Size: 621 Bytes

Versions: 56

Compression:

Stored size: 621 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
          projects_path
        end

        def attached_to
          project
        end

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

        def authorization_object
          project.feature
        end
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
decidim-budgets-0.10.1 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.10.0 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.9.3 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.9.2 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.9.1 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.9.0 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.8.4 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.8.3 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.8.2 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.8.1 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.8.0 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.7.4 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.7.3 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.7.2 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.7.1 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.7.0 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.6.8 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-0.6.8 decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-budgets-0.6.7 app/controllers/decidim/budgets/admin/attachments_controller.rb
decidim-0.6.7 decidim-budgets/app/controllers/decidim/budgets/admin/attachments_controller.rb