From bed50f266887109e4e3f3ffdb02fa23c1a270a13 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Mon, 5 Oct 2015 19:28:56 +0800 Subject: [PATCH] small fix for trailing "," --- app/models/journal_paper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 3c16706..7f0e719 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -51,7 +51,7 @@ class JournalPaper def create_link title = [] - title << (!self.authors.blank? ? self.authors : nil) + title << self.authors if !self.authors.blank? title << self.paper_title if self.paper_title.present? title << self.journal_title if self.journal_title.present? title << self.vol_no if (self.vol_no.present? && self.vol_no != "0") @@ -63,7 +63,6 @@ class JournalPaper # title << pd[0] # end title << self.year - title.join(', ').gsub(', ,',',') end # def self.member_data