diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2015-12-01 18:11:12 -0200 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2015-12-02 22:46:10 -0200 |
commit | ceb12580912a26ee0c28f9ff1cbc7924b14a7d06 (patch) | |
tree | b8d83b668f73574e181351257c9e61641a0ffe3d | |
parent | ca7e31c48fef604287ffc485d20a1551b345456a (diff) | |
download | gitlab-ce-bugfix/star_cache.tar.gz |
Add touch to project when toggling stars to update cachebugfix/star_cache
-rw-r--r-- | app/models/user.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index e1144ca77be..c35d5e92163 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -703,6 +703,7 @@ class User < ActiveRecord::Base else UsersStarProject.create!(project: project, user: self) end + project.touch # update project cache end end |