From 7e3eb4a6fcc1418b09d864f24ce429f5b47017fc Mon Sep 17 00:00:00 2001 From: rgarcia Date: Mon, 24 Oct 2016 02:48:08 +0200 Subject: [PATCH] fixes expire cache specs --- app/models/comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/comment.rb b/app/models/comment.rb index f940a5b3c..93944cb7e 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -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