debian-mirror-gitlab/app/controllers/admin/topics/avatars_controller.rb
2021-11-18 22:05:49 +05:30

14 lines
314 B
Ruby

# 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