summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/enumeration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb
index 1c4a7a414..fde7ea79b 100644
--- a/app/models/enumeration.rb
+++ b/app/models/enumeration.rb
@@ -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