fix error
This commit is contained in:
parent
8c412dc167
commit
9e891605c5
|
@ -54,6 +54,8 @@ class JournalPaper
|
||||||
scope :sort_year_date, ->{ order_by(:year => "desc", :publication_date => "desc", :id=>"desc") }
|
scope :sort_year_date, ->{ 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") }
|
scope :sort_for_frontend, ->{ where(:is_hidden=>false).order_by(:year => "desc", :publication_date => "desc", :id=>"desc") }
|
||||||
|
|
||||||
|
alias_method :member_profiles, :member_profile
|
||||||
|
|
||||||
def create_link
|
def create_link
|
||||||
title = []
|
title = []
|
||||||
|
|
||||||
|
@ -211,13 +213,8 @@ class JournalPaper
|
||||||
plugin_datas
|
plugin_datas
|
||||||
end
|
end
|
||||||
|
|
||||||
def member_profile(only_one=true)
|
def member_profile()
|
||||||
tmp = super()
|
member_profiles.first
|
||||||
only_one ? tmp.first : tmp
|
|
||||||
end
|
|
||||||
|
|
||||||
def member_profiles
|
|
||||||
member_profile(false)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def member_profile=(mp)
|
def member_profile=(mp)
|
||||||
|
|
Loading…
Reference in New Issue