debian-mirror-gitlab/app/controllers/groups/avatars_controller.rb

11 lines
216 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
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