BigW Consortium Gitlab

avatars_controller.rb 217 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
    @user.reset_events_cache

9 10 11
    redirect_to profile_path
  end
end