2015-04-30 17:06:18 +00:00
|
|
|
class Profiles::AvatarsController < Profiles::ApplicationController
|
2013-12-02 18:03:07 +00:00
|
|
|
def destroy
|
|
|
|
@user = current_user
|
|
|
|
|
2017-06-23 09:34:07 +00:00
|
|
|
Users::UpdateService.new(@user).execute { |user| user.remove_avatar! }
|
2013-12-11 15:30:22 +00:00
|
|
|
|
2017-06-06 22:45:16 +00:00
|
|
|
redirect_to profile_path, status: 302
|
2013-12-02 18:03:07 +00:00
|
|
|
end
|
|
|
|
end
|