diff options
author | Drew Blessing <drew.blessing@buckle.com> | 2013-12-11 09:30:22 -0600 |
---|---|---|
committer | Drew Blessing <drew.blessing@buckle.com> | 2013-12-11 09:30:22 -0600 |
commit | c26d392b1a160ae357a63cf160daeb81a0dd8ece (patch) | |
tree | 79104023aea917518515d66888b477f6e0f03fc9 /app/controllers/profiles | |
parent | 2934e7a9627bb92ab9367923cdbcbaa13f7843d4 (diff) | |
download | gitlab-ce-c26d392b1a160ae357a63cf160daeb81a0dd8ece.tar.gz |
Expire event cache on avatar creation/removal
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/avatars_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/profiles/avatars_controller.rb b/app/controllers/profiles/avatars_controller.rb index e90eaafd440..57f3bbf0627 100644 --- a/app/controllers/profiles/avatars_controller.rb +++ b/app/controllers/profiles/avatars_controller.rb @@ -6,6 +6,8 @@ class Profiles::AvatarsController < ApplicationController @user.remove_avatar! @user.save + @user.reset_events_cache + redirect_to profile_path end end |