Commit 0a9fe7decf26bc445d89c737dac244a7c8992547
Exists in
staging
and in
4 other branches
Merge branch 'following' into staging
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/models/article_follower.rb
1 | class ArticleFollower < ActiveRecord::Base | 1 | class ArticleFollower < ActiveRecord::Base |
2 | + | ||
3 | + extend CacheCounterHelper | ||
4 | + | ||
2 | attr_accessible :article_id, :person_id, :since | 5 | attr_accessible :article_id, :person_id, :since |
3 | belongs_to :article, :counter_cache => :followers_count | 6 | belongs_to :article, :counter_cache => :followers_count |
4 | belongs_to :person | 7 | belongs_to :person |