From 9f0569e64995596b4e30a5a5f4fe618da0e8054b Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 30 Sep 2013 11:13:41 -0300 Subject: [PATCH] Ensure callbacks aren't called --- lib/acts_as_filesystem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acts_as_filesystem.rb b/lib/acts_as_filesystem.rb index 896a029..92243f1 100644 --- a/lib/acts_as_filesystem.rb +++ b/lib/acts_as_filesystem.rb @@ -36,7 +36,7 @@ module ActsAsFileSystem ActiveRecord::Base.transaction do self.base_class.all(:conditions => {:parent_id => parent_id}).each do |node| node.ancestry = ancestry - node.save :run_callbacks => false + node.send :create_or_update_without_callbacks build_ancestry node.id, (ancestry.empty? ? "#{node.formatted_ancestry_id}" : "#{ancestry}#{node.ancestry_sep}#{node.formatted_ancestry_id}") -- libgit2 0.21.2