Reintroduce the EventsHelper::participants_names_or_emails method
This commit is contained in:
parent
c44654f79f
commit
8a0ae82165
|
@ -13,4 +13,12 @@ module EventsHelper
|
|||
end
|
||||
end.join(', ').html_safe
|
||||
end
|
||||
|
||||
def participant_names_or_emails(event)
|
||||
event.participants.map do |participant|
|
||||
participant.try(:personal_profile, current_conference).try(:name) ||
|
||||
participant.personal_profiles.last.try(:name) ||
|
||||
participant.email
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue