adds :touch to ancestry

now nested comments caches invalidates automagically
This commit is contained in:
Juanjo Bazán
2015-09-09 14:46:09 +02:00
parent 9166307120
commit 92bff4b4c3

View File

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