Sha256: 4abefd0136436a8471f7e71898880f7695967d29ea88d592689b021236971d81
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
# frozen_string_literal: true module Decidim module Consultations module Admin # Controller that allows managing all the attachments for a question class QuestionAttachmentsController < Decidim::Admin::ApplicationController include QuestionAdmin include Decidim::Admin::Concerns::HasAttachments def after_destroy_path decidim_admin_consultations.question_attachments_path(current_question) end def attached_to current_question end def authorization_object collection.find_by(id: params[:id]) || Decidim::Attachment end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems