diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-30 08:01:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-10-30 08:01:19 +0000 |
commit | 36ee95c1f4cc9283478cbfbc2048c9c51a96ce32 (patch) | |
tree | bdf988f1417d8f1c80191ef5caf7e3a087c9657e | |
parent | 3ea84bd7e44fe352b4a8bc3385f359c112405f56 (diff) | |
download | redmine-36ee95c1f4cc9283478cbfbc2048c9c51a96ce32.tar.gz redmine-36ee95c1f4cc9283478cbfbc2048c9c51a96ce32.zip |
Removed ORDER option on acts_as_tree that duplicates default_scope.
git-svn-id: http://svn.redmine.org/redmine/trunk@13528 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/enumeration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 9e547169d..4540e9720 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 => "#{Enumeration.table_name}.position ASC" + acts_as_tree before_destroy :check_integrity before_save :check_default |