Added radio buttons on the documents list to sort documents by category, date, title or author.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@879 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-11-04 11:15:04 +00:00
parent 11cf016c58
commit d4e47d5d64
22 changed files with 50 additions and 27 deletions

View File

@@ -47,6 +47,10 @@ class Enumeration < ActiveRecord::Base
Enumeration.update_all("is_default = #{connection.quoted_false}", {:opt => opt}) if is_default?
end
def <=>(enumeration)
position <=> enumeration.position
end
def to_s; name end
private