diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2015-12-01 23:11:12 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2015-12-03 21:08:08 +0300 |
commit | 82e916b0f2cbd500d14f545095ac82464c0a3889 (patch) | |
tree | 8025aea79e24b7dfc4468011ae0fc4b5676f3ad5 /app/models/users_star_project.rb | |
parent | 76f0054220e0ff6c37f69702e1fa5005ded1f402 (diff) |
Touch project when toggling stars to update cache
Diffstat (limited to 'app/models/users_star_project.rb')
-rw-r--r-- | app/models/users_star_project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/users_star_project.rb b/app/models/users_star_project.rb index 3d49cb05949..413f3f485a8 100644 --- a/app/models/users_star_project.rb +++ b/app/models/users_star_project.rb @@ -10,7 +10,7 @@ # class UsersStarProject < ActiveRecord::Base - belongs_to :project, counter_cache: :star_count + belongs_to :project, counter_cache: :star_count, touch: true belongs_to :user validates :user, presence: true |