From 1b1eb7042c615416f2e99f4d88ade80cd51d9498 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 22:02:59 +0800 Subject: [PATCH] Update journal_papers_helper.rb --- app/helpers/admin/journal_papers_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/admin/journal_papers_helper.rb b/app/helpers/admin/journal_papers_helper.rb index 3291ec3..518e177 100644 --- a/app/helpers/admin/journal_papers_helper.rb +++ b/app/helpers/admin/journal_papers_helper.rb @@ -1,6 +1,6 @@ module Admin::JournalPapersHelper def get_member(journal) - Array(MemberProfile.find(journal.collect(&:member_profile_id))) + Array(MemberProfile.find(Array(journal).collect(&:member_profile_id))) end def get_level_type(journal) !journal.journal_levels.blank? ? "(#{journal.journal_levels.collect(&:title).join(', ')})" : nil