diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-07-14 15:17:59 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-07-17 22:47:16 +0200 |
commit | 9b5c7a4d6026265cfeaeac9ad5101f8826515dbe (patch) | |
tree | 18d795d222563b9c672aff1121b11022a32016b7 /app/models/users_star_project.rb | |
parent | ecd771ccdfe54b08ea7f80f64667228b7938238d (diff) | |
download | gitlab-ce-9b5c7a4d6026265cfeaeac9ad5101f8826515dbe.tar.gz |
Add star count, view logic, more tests.
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 1f5ae37b02b..80e756bd00c 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 + belongs_to :project, counter_cache: :star_count belongs_to :user validates :user, presence: true |