From 08e8ca74878260313eac79701294ff1031418e0e Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 15 May 2020 19:07:10 +0800 Subject: [PATCH] fix error --- app/models/patent.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/patent.rb b/app/models/patent.rb index 8e1ad0f..28cce00 100644 --- a/app/models/patent.rb +++ b/app/models/patent.rb @@ -36,7 +36,7 @@ class Patent scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :application_date => "desc", :publish_date => "desc") } - def member_profile(): + def member_profile() (super || MemberProfile.find(self.member_profile_id)) rescue nil end def get_plugin_data(fields_to_show)