Mercurial > hg > soundsoftware-site
diff app/models/.svn/text-base/principal.rb.svn-base @ 22:40f7cfd4df19
* Update to SVN trunk rev 4173
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 24 Sep 2010 14:06:04 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line diff
--- a/app/models/.svn/text-base/principal.rb.svn-base Wed Aug 25 16:30:24 2010 +0100 +++ b/app/models/.svn/text-base/principal.rb.svn-base Fri Sep 24 14:06:04 2010 +0100 @@ -33,7 +33,11 @@ } 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