Revision 1417:1df2db7f0e4d plugins/redmine_bibliography/app/models
| plugins/redmine_bibliography/app/models/author.rb | ||
|---|---|---|
| 34 | 34 |
end |
| 35 | 35 |
end |
| 36 | 36 |
|
| 37 |
def name |
|
| 38 |
if self.authorships.first.nil? |
|
| 39 |
"" |
|
| 40 |
else |
|
| 41 |
self.authorships.first.name |
|
| 42 |
end |
|
| 43 |
end |
|
| 44 |
|
|
| 37 | 45 |
end |
Also available in: Unified diff