Project

General

Profile

Defect #10829 ยป 10829.patch

Jean-Philippe Lang, 2012-05-04 18:45

View differences:

vendor/plugins/awesome_nested_set/lib/awesome_nested_set.rb (working copy)
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
          # Find root node(s)
    (1-1/1)