Sha256: a74b192d31f719064186198cde4a98e4e5f40da0614b26c1994f0ef605e67240

Contents?: true

Size: 556 Bytes

Versions: 64

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

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

        def after_destroy_path
          post_attachments_path
        end

        def attached_to
          post
        end

        def post
          @post ||= posts.find(params[:post_id])
        end
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
decidim-blogs-0.26.8 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.4 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.3 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.7 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.5 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.2 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.1 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.4 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.0 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.3 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.0.rc2 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.27.0.rc1 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.2 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.1 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.0 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.0.rc2 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.26.0.rc1 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.25.2 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.25.1 app/controllers/decidim/blogs/admin/attachments_controller.rb
decidim-blogs-0.25.0 app/controllers/decidim/blogs/admin/attachments_controller.rb