diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-05 17:24:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-05 17:24:22 +0000 |
commit | a19a0d7b9278ae8666971e5f004013ecaa3a9cf8 (patch) | |
tree | 5a6c2af392fcecd3a6617c5e8852919488c756e0 /app/models | |
parent | 17a3f9e44c1509dbaebf478ec82ef2559d4e40cf (diff) | |
download | redmine-a19a0d7b9278ae8666971e5f004013ecaa3a9cf8.tar.gz redmine-a19a0d7b9278ae8666971e5f004013ecaa3a9cf8.zip |
Subprojects are now grouped by projects in the 'Projects' top navigation drop-down menu.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@703 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index eeeaa9fd4..2eaa0f733 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -116,6 +116,10 @@ class Project < ActiveRecord::Base def all_custom_fields @all_custom_fields ||= (IssueCustomField.for_all + custom_fields).uniq end + + def <=>(project) + name <=> project.name + end protected def validate |