mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 02:17:43 +02:00
Adds :order option to acts_as_nested_tree so that children are sorted alphabetically when the tree is rebuilt.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2156 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -43,7 +43,7 @@ class Project < ActiveRecord::Base
|
||||
:join_table => "#{table_name_prefix}custom_fields_projects#{table_name_suffix}",
|
||||
:association_foreign_key => 'custom_field_id'
|
||||
|
||||
acts_as_nested_set :dependent => :nullify
|
||||
acts_as_nested_set :order => 'name', :dependent => :nullify
|
||||
acts_as_attachable :view_permission => :view_files,
|
||||
:delete_permission => :manage_files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user