]> source.dussan.org Git - redmine.git/commitdiff
Removed ORDER option on acts_as_tree that duplicates default_scope.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Oct 2014 08:01:19 +0000 (08:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 30 Oct 2014 08:01:19 +0000 (08:01 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13528 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/enumeration.rb

index 9e547169d745c6e8b1d5526250466f5ee325b504..4540e9720296655cf007d54ad3d679a4ca91d73d 100644 (file)
@@ -24,7 +24,7 @@ class Enumeration < ActiveRecord::Base
 
   acts_as_list :scope => 'type = \'#{type}\''
   acts_as_customizable
-  acts_as_tree :order => "#{Enumeration.table_name}.position ASC"
+  acts_as_tree
 
   before_destroy :check_integrity
   before_save    :check_default