Sha256: 730c35348d736bbbc1896334010cd0650704b36d1f1bccba0d20f05a3a2c4c59

Contents?: true

Size: 621 Bytes

Versions: 13

Compression:

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

        def authorization_object
          meeting.feature
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
decidim-meetings-0.1.0 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.1.0 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.0.8.1 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.0.8.1 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.0.7 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.0.7 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.0.6 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.0.6 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.0.5 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.0.5 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.0.4 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-meetings-0.0.3 app/controllers/decidim/meetings/admin/attachments_controller.rb
decidim-0.0.3 decidim-meetings/app/controllers/decidim/meetings/admin/attachments_controller.rb