From d9ef7c55852e64bca98e7d35a3b9f81a73566947 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 1 Nov 2019 14:39:57 +0800 Subject: [PATCH] Update journal_papers_controller.rb --- .../admin/journal_papers_controller.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/controllers/admin/journal_papers_controller.rb b/app/controllers/admin/journal_papers_controller.rb index 92daf07..b5019fc 100644 --- a/app/controllers/admin/journal_papers_controller.rb +++ b/app/controllers/admin/journal_papers_controller.rb @@ -224,21 +224,6 @@ class Admin::JournalPapersController < OrbitMemberController end private - def get_member(journal) - Array(MemberProfile.find(journal.member_profile_id)) - end - def get_level_type(journal) - !journal.journal_levels.blank? ? "(#{journal.journal_levels.collect(&:title).join(', ')})" : nil - end - def get_author_type(journal) - journal.journal_paper_author_types.collect(&:title).join(', ') rescue '' - end - def get_paper_type(journal) - journal.journal_paper_type.title rescue '' - end - def get_publication_date(journal) - journal.publication_date.strftime('%Y/%m/%d') rescue '' - end def set_journal_paper path = request.path.split('/') if path.last.include? '-'