BigW Consortium Gitlab

avatars_controller.rb 188 Bytes
Newer Older
1
class Profiles::AvatarsController < Profiles::ApplicationController
2 3 4 5 6
  def destroy
    @user = current_user
    @user.remove_avatar!

    @user.save
7

8 9 10
    redirect_to profile_path
  end
end