Prevents position to be specified more than once in the order by list which is not supported by SQLServer (#12713).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11100 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-01-03 11:37:07 +00:00
parent dd7d54b3a1
commit 8b08c1a534
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class Enumeration < ActiveRecord::Base
acts_as_list :scope => 'type = \'#{type}\''
acts_as_customizable
acts_as_tree :order => 'position ASC'
acts_as_tree :order => "#{Enumeration.table_name}.position ASC"
before_destroy :check_integrity
before_save :check_default