app/concepts/participant/cells/participant_masthead.rb
class Participant::Cell::ParticipantMasthead < Template::Cell
inherit_views Participant::Cell
def show
render :participant_masthead
end
def participant
model
end
def location_organization
location_organization = []
if participant.location
location_organization << participant.location << 'ยท'
end
location_organization << participant.organizer.organizer if participant.organizer_id
return nil if location_organization.empty?
return location_organization.join(' ')
end
end