gitlab-org--gitlab-foss/app/controllers/groups/avatars_controller.rb

13 lines
236 B
Ruby
Raw Normal View History

2014-01-27 16:34:05 -05:00
class Groups::AvatarsController < ApplicationController
layout "profile"
def destroy
@group = Group.find_by(path: params[:group_id])
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group)
end
end