fixes expire cache specs

This commit is contained in:
rgarcia
2016-10-24 02:48:08 +02:00
committed by Julian Herrero
parent f1e4fb946d
commit 7e3eb4a6fc

View File

@@ -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