Update journal_papers_helper.rb

This commit is contained in:
chiu 2019-11-01 22:02:59 +08:00
parent b6c8726191
commit 1b1eb7042c
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
module Admin::JournalPapersHelper module Admin::JournalPapersHelper
def get_member(journal) def get_member(journal)
Array(MemberProfile.find(journal.collect(&:member_profile_id))) Array(MemberProfile.find(Array(journal).collect(&:member_profile_id)))
end end
def get_level_type(journal) def get_level_type(journal)
!journal.journal_levels.blank? ? "(#{journal.journal_levels.collect(&:title).join(', ')})" : nil !journal.journal_levels.blank? ? "(#{journal.journal_levels.collect(&:title).join(', ')})" : nil