Merge 4ef78e2b9d into d4b9ea48f9
This commit is contained in:
commit
6fac651188
7 changed files with 30 additions and 12 deletions
|
|
@ -8,7 +8,7 @@ class Comment < ActiveRecord::Base
|
|||
# want user to vote on the quality of comments.
|
||||
#acts_as_votable
|
||||
|
||||
belongs_to :commentable, polymorphic: true
|
||||
belongs_to :commentable, polymorphic: true, counter_cache: true
|
||||
|
||||
# NOTE: Comments belong to a user
|
||||
belongs_to :user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue