From 92bff4b4c36db013b1aa12ba001576ec31f44f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Wed, 9 Sep 2015 14:46:09 +0200 Subject: [PATCH] adds :touch to ancestry now nested comments caches invalidates automagically --- 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 efa9ec7a0..233736824 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -2,7 +2,7 @@ class Comment < ActiveRecord::Base acts_as_paranoid column: :hidden_at include ActsAsParanoidAliases acts_as_votable - has_ancestry + has_ancestry touch: true attr_accessor :as_moderator, :as_administrator