Commit 9f0569e64995596b4e30a5a5f4fe618da0e8054b

Authored by Braulio Bhavamitra
1 parent 4d1b6e67

Ensure callbacks aren't called

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/acts_as_filesystem.rb
... ... @@ -36,7 +36,7 @@ module ActsAsFileSystem
36 36 ActiveRecord::Base.transaction do
37 37 self.base_class.all(:conditions => {:parent_id => parent_id}).each do |node|
38 38 node.ancestry = ancestry
39   - node.save :run_callbacks => false
  39 + node.send :create_or_update_without_callbacks
40 40  
41 41 build_ancestry node.id, (ancestry.empty? ? "#{node.formatted_ancestry_id}" :
42 42 "#{ancestry}#{node.ancestry_sep}#{node.formatted_ancestry_id}")
... ...