Mercurial > hg > soundsoftware-site
diff app/models/.svn/text-base/principal.rb.svn-base @ 23:ca82a3468d27 cannam
* Merge SVN update from default
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 24 Sep 2010 14:17:42 +0100 |
parents | 40f7cfd4df19 |
children |
line wrap: on
line diff
--- a/app/models/.svn/text-base/principal.rb.svn-base Thu Sep 23 16:19:06 2010 +0100 +++ b/app/models/.svn/text-base/principal.rb.svn-base Fri Sep 24 14:17:42 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