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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
304 B
Ruby
Raw Normal View History

2018-12-05 23:21:45 +05:30
# frozen_string_literal: true
2015-09-11 14:41:01 +05:30
class Profiles::AvatarsController < Profiles::ApplicationController
2021-01-03 14:25:43 +05:30
feature_category :users
2014-09-02 18:07:02 +05:30
def destroy
@user = current_user
2023-03-17 16:20:25 +05:30
Users::UpdateService.new(current_user, user: @user).execute(&:remove_avatar!)
2014-09-02 18:07:02 +05:30
2018-11-18 11:00:15 +05:30
redirect_to profile_path, status: :found
2014-09-02 18:07:02 +05:30
end
end