Sha256: 34017cf75fb686e3d4d0218efa4c13ecbd25aaf60e0f2d0e066df08002ede92a

Contents?: true

Size: 569 Bytes

Versions: 78

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    module Admin
      # Controller that allows managing all the attachments for a participatory
      # process.
      #
      class AttachmentsController < Decidim::Meetings::Admin::ApplicationController
        include Decidim::Admin::Concerns::HasAttachments

        def after_destroy_path
          meetings_path
        end

        def attached_to
          meeting
        end

        def meeting
          @meeting ||= meetings.find(params[:meeting_id])
        end
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.4 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.27.9 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.29.0 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.3 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.27.8 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.29.0.rc4 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.29.0.rc3 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.29.0.rc2 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.29.0.rc1 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.2 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.27.7 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.1 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.27.6 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.26.10 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.26.9 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.0 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.27.5 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.0.rc5 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.28.0.rc4 app/controllers/decidim/meetings/admin/attachments_controller.rb