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:
parent
dd7d54b3a1
commit
8b08c1a534
|
@ -24,7 +24,7 @@ class Enumeration < ActiveRecord::Base
|
||||||
|
|
||||||
acts_as_list :scope => 'type = \'#{type}\''
|
acts_as_list :scope => 'type = \'#{type}\''
|
||||||
acts_as_customizable
|
acts_as_customizable
|
||||||
acts_as_tree :order => 'position ASC'
|
acts_as_tree :order => "#{Enumeration.table_name}.position ASC"
|
||||||
|
|
||||||
before_destroy :check_integrity
|
before_destroy :check_integrity
|
||||||
before_save :check_default
|
before_save :check_default
|
||||||
|
|
Loading…
Reference in New Issue