From: Eric Davis Date: Mon, 20 Sep 2010 04:05:20 +0000 (+0000) Subject: Merged r4076 from trunk. X-Git-Tag: 1.0.2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a5dce41e20a3a29baa04e3260c82356bddb463e;p=redmine.git Merged r4076 from trunk. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4141 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/principal.rb b/app/models/principal.rb index 58c3f0497..b3e07dda5 100644 --- a/app/models/principal.rb +++ b/app/models/principal.rb @@ -33,7 +33,11 @@ class Principal < ActiveRecord::Base } before_create :set_default_empty_values - + + def name(formatter = nil) + to_s + end + def <=>(principal) if self.class.name == principal.class.name self.to_s.downcase <=> principal.to_s.downcase