diff --git a/app/helpers/admin/personal_conferences_helper.rb b/app/helpers/admin/personal_conferences_helper.rb index a0518e6..52ce5b6 100644 --- a/app/helpers/admin/personal_conferences_helper.rb +++ b/app/helpers/admin/personal_conferences_helper.rb @@ -3,11 +3,14 @@ module Admin::PersonalConferencesHelper (writing_conference.authors.to_s.blank? ? get_member(writing_conference).collect(&:name).join('/') : Nokogiri::HTML(writing_conference.authors.to_s).text rescue '') end def get_authors_show(writing_conference) - (writing_conference.authors.to_s.blank? ? get_member(writing_conference).collect{|member| "#{member.name}"}.join('/') : writing_conference.authors.to_s rescue '') + (writing_conference.authors.to_s.blank? ? get_member_show(writing_conference) : writing_conference.authors.to_s rescue '') end def get_member(writing_conference) Array(MemberProfile.find(Array(writing_conference).collect(&:member_profile_id))) end + def get_member_show(writing_conference) + get_member(writing_conference).collect{|member| "#{member.name}"}.join('/') + end def get_sponsor(writing_conference) writing_conference.sponsor end