Project

General

Profile

« Previous | Next » 

Revision 9631

Do not trigger model validations when rebuilding the nested set (#10829).

View differences:

branches/1.4-stable/vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb
184 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 185
            # set right
186 186
            node[right_column_name] = indices[scope.call(node)] += 1    
187
            node.save!    
187
            node.save(false)
188 188
          end
189 189
                              
190 190
          # Find root node(s)

Also available in: Unified diff