Welcome to mirror list, hosted at ThFree Co, Russian Federation.

avatars_controller.rb « topics « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7acdec424b40139c5b68c4685e052e4b348dbb34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class Admin::Topics::AvatarsController < Admin::ApplicationController
  feature_category :projects

  def destroy
    @topic = Projects::Topic.find(params[:topic_id])

    @topic.remove_avatar!
    @topic.save

    redirect_to edit_admin_topic_path(@topic), status: :found
  end
end