Speaker emails in Events CSV/XLS export is included
This commit is contained in:
parent
e99287d18a
commit
7c0fa59a0a
7 changed files with 85 additions and 13 deletions
|
|
@ -211,6 +211,15 @@ class Event < ActiveRecord::Base
|
|||
result.to_a.to_sentence
|
||||
end
|
||||
|
||||
# Returns emails of all the speaker belongs to a particular event
|
||||
def speaker_emails
|
||||
result = Array.new
|
||||
speakers.each do |speaker|
|
||||
result << speaker.email
|
||||
end
|
||||
result.to_sentence
|
||||
end
|
||||
|
||||
##
|
||||
#
|
||||
# Returns +Hash+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue