gitlab-org--gitlab-foss/app/controllers/groups/avatars_controller.rb
Dmitriy Zaporozhets 32f1a71968
Fix removing avatar for group
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-16 17:24:14 +01:00

8 lines
171 B
Ruby

class Groups::AvatarsController < Groups::ApplicationController
def destroy
@group.remove_avatar!
@group.save
redirect_to edit_group_path(@group)
end
end