gitlab-org--gitlab-foss/app/controllers/groups/avatars_controller.rb
2015-04-30 19:12:15 +02:00

10 lines
216 B
Ruby

class Groups::AvatarsController < ApplicationController
def destroy
@group = Group.find_by(path: params[:group_id])
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group)
end
end