Browse Source

Adjust the comment.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10153 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.1.0
Jean-Philippe Lang 12 years ago
parent
commit
f8183429a9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/models/version.rb

+ 2
- 2
app/models/version.rb View File

@@ -162,8 +162,8 @@ class Version < ActiveRecord::Base
"#{project} - #{name}"
end

# Versions are sorted by effective_date and "Project Name - Version name"
# Those with no effective_date are at the end, sorted by "Project Name - Version name"
# Versions are sorted by effective_date and name
# Those with no effective_date are at the end, sorted by name
def <=>(version)
if self.effective_date
if version.effective_date

Loading…
Cancel
Save