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") }
|
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 :member_profiles, :member_profile
|
||||||
|
alias_method :org_member_profile=, :member_profile=
|
||||||
|
|
||||||
def create_link
|
def create_link
|
||||||
title = []
|
title = []
|
||||||
|
@ -218,7 +219,7 @@ class JournalPaper
|
||||||
end
|
end
|
||||||
|
|
||||||
def member_profile=(mp)
|
def member_profile=(mp)
|
||||||
super(mp.class != MemberProfile ? mp : [mp])
|
org_member_profile=(mp.class != MemberProfile ? mp : [mp])
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_plugin_field_data(field)
|
def get_plugin_field_data(field)
|
||||||
|
|
Loading…
Reference in New Issue