comparison plugins/redmine_bibliography/app/models/author.rb @ 1417:1df2db7f0e4d biblio_alt_search_auth

Added a name getter for the Author class.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 01 Oct 2013 18:18:25 +0100
parents 07444815c0bd
children fd6b09e93623
comparison
equal deleted inserted replaced
1416:96ffcd574b96 1417:1df2db7f0e4d
32 else 32 else
33 self.authorships.first.mail 33 self.authorships.first.mail
34 end 34 end
35 end 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 end 45 end