From 19fdd252977f5f63cea37d9b3c46a6adbf09ecea Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 26 Oct 2017 11:00:50 -0700 Subject: [PATCH] use update_attribute for updating descendant names on tagimplication --- app/models/tag_implication.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tag_implication.rb b/app/models/tag_implication.rb index 202909cbd..75c02bfba 100644 --- a/app/models/tag_implication.rb +++ b/app/models/tag_implication.rb @@ -51,7 +51,7 @@ class TagImplication < TagRelationship def update_descendant_names! clear_descendants_cache update_descendant_names - update({ :descendant_names => descendant_names }, :as => CurrentUser.role) + update_attribute(:descendant_names, descendant_names) end def update_descendant_names_for_parents