Defect #10829 ยป 10829.patch
| vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb (working copy) | ||
|---|---|---|
|
find(:all, :conditions => ["#{quoted_parent_column_name} = ? #{scope.call(node)}", node], :order => "#{quoted_left_column_name}, #{quoted_right_column_name}, #{acts_as_nested_set_options[:order]}").each{|n| set_left_and_rights.call(n) }
|
||
|
# set right
|
||
|
node[right_column_name] = indices[scope.call(node)] += 1
|
||
|
node.save!
|
||
|
node.save(false)
|
||
|
end
|
||
|
# Find root node(s)
|
||