mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
speakers_names is made in sentense using join
This commit is contained in:
parent
52a5cb2391
commit
6c8ebe586c
1 changed files with 1 additions and 5 deletions
|
|
@ -204,11 +204,7 @@ class Event < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def speaker_names
|
||||
result = Set.new
|
||||
speakers.each do |speaker|
|
||||
result.add(speaker.name)
|
||||
end
|
||||
result.to_a.to_sentence
|
||||
speakers.map(&:name).join(', ')
|
||||
end
|
||||
|
||||
# Returns emails of all the speaker belongs to a particular event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue