forked from saurabh/personal-journal
修復錯誤
This commit is contained in:
parent
8b18dded06
commit
934b054974
|
@ -55,6 +55,7 @@ class JournalPaper
|
|||
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publication_date => "desc", :id=>"desc") }
|
||||
|
||||
alias_method :member_profiles, :member_profile
|
||||
alias_method :org_member_profile=, :member_profile=
|
||||
|
||||
def create_link
|
||||
title = []
|
||||
|
@ -218,7 +219,7 @@ class JournalPaper
|
|||
end
|
||||
|
||||
def member_profile=(mp)
|
||||
super(mp.class != MemberProfile ? mp : [mp])
|
||||
org_member_profile=(mp.class != MemberProfile ? mp : [mp])
|
||||
end
|
||||
|
||||
def get_plugin_field_data(field)
|
||||
|
|
Loading…
Reference in New Issue