fixes expire cache specs
This commit is contained in:
@@ -22,7 +22,7 @@ class Comment < ActiveRecord::Base
|
||||
validate :validate_body_length
|
||||
validate :comment_valuation, if: -> { valuation }
|
||||
|
||||
belongs_to :commentable, -> { with_hidden }, polymorphic: true, counter_cache: true
|
||||
belongs_to :commentable, -> { with_hidden }, polymorphic: true, counter_cache: true, touch: true
|
||||
belongs_to :user, -> { with_hidden }
|
||||
|
||||
before_save :calculate_confidence_score
|
||||
|
||||
Reference in New Issue
Block a user