OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a2efb4
)
Define Principal#name so all subclasses will have some sort of name when printed.
author
Eric Davis
<edavis@littlestreamsoftware.com>
Fri, 10 Sep 2010 18:46:23 +0000
(18:46 +0000)
committer
Eric Davis
<edavis@littlestreamsoftware.com>
Fri, 10 Sep 2010 18:46:23 +0000
(18:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4076
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/models/principal.rb
patch
|
blob
|
history
diff --git
a/app/models/principal.rb
b/app/models/principal.rb
index
58c3f04
..
b3e07dd
100644
(file)
--- 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