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