##// END OF EJS Templates
Do not trigger model validations when rebuilding the nested set (#10829)....
Jean-Philippe Lang -
r9448:fa4fdf91a41e
parent child
Show More
@@ -184,7 +184,7 module CollectiveIdea #:nodoc:
184 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) }
184 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) }
185 # set right
185 # set right
186 node[right_column_name] = indices[scope.call(node)] += 1
186 node[right_column_name] = indices[scope.call(node)] += 1
187 node.save!
187 node.save(false)
188 end
188 end
189
189
190 # Find root node(s)
190 # Find root node(s)
General Comments 0
You need to be logged in to leave comments. Login now