Merged r8863 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9112 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
488926276d
commit
92dde0d75f
3 files changed
+31
-2
No files matched your search
@@ -40,7 +40,9 @@ class Principal < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def <=>(principal)
|
||||
if self.class.name == principal.class.name
|
||||
if principal.nil?
|
||||
-1
|
||||
elsif self.class.name == principal.class.name
|
||||
self.to_s.downcase <=> principal.to_s.downcase
|
||||
else
|
||||
# groups after users
|
||||
|
||||
Reference in new issue
Block a user