Commit 360702f59753ba5d57469c60ead1cee3134e4b10
Exists in
master
and in
22 other branches
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
lib/acts_as_filesystem.rb
| ... | ... | @@ -35,8 +35,7 @@ module ActsAsFileSystem |
| 35 | 35 | def build_ancestry(parent_id = nil, ancestry = '') |
| 36 | 36 | ActiveRecord::Base.transaction do |
| 37 | 37 | self.base_class.all(:conditions => {:parent_id => parent_id}).each do |node| |
| 38 | - node.ancestry = ancestry | |
| 39 | - node.send :create_or_update_without_callbacks | |
| 38 | + node.update_column :ancestry, ancestry | |
| 40 | 39 | |
| 41 | 40 | build_ancestry node.id, (ancestry.empty? ? "#{node.formatted_ancestry_id}" : |
| 42 | 41 | "#{ancestry}#{node.ancestry_sep}#{node.formatted_ancestry_id}") | ... | ... |