X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/71cb84bbe244d0ef471a385b02f1f432bc17b606..091e0c21efd3f4117fc6491a1b25c4d1cbc5a099:/app/models/diary_comment.rb diff --git a/app/models/diary_comment.rb b/app/models/diary_comment.rb index 55d2c3c84..a88c69f12 100644 --- a/app/models/diary_comment.rb +++ b/app/models/diary_comment.rb @@ -23,7 +23,7 @@ # class DiaryComment < ApplicationRecord - belongs_to :user + belongs_to :user, :counter_cache => true belongs_to :diary_entry scope :visible, -> { where(:visible => true) }