From 4e1adcd0e36b7171113d7f57b414e9664c410689 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Sat, 4 Mar 2023 11:20:55 +0800 Subject: [PATCH] fix error --- app/models/journal_paper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/journal_paper.rb b/app/models/journal_paper.rb index 9a92627..1c49805 100644 --- a/app/models/journal_paper.rb +++ b/app/models/journal_paper.rb @@ -31,7 +31,8 @@ class JournalPaper # paginates_per 10 #relations - belongs_to :member_profile + has_and_belongs_to_many :member_profile, class_name: "MemberProfile", foreign_key: 'member_profile_id' + belongs_to :journal_paper_type has_and_belongs_to_many :journal_types