Update journal_papers_helper.rb

This commit is contained in:
chiu 2019-11-01 21:59:44 +08:00
parent 9ad6002d2e
commit b6c8726191
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.member_profile_id)) Array(MemberProfile.find(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