Speaker emails in Events CSV/XLS export is included

This commit is contained in:
Your Name 2017-10-12 23:51:58 +05:30 committed by Naman Gupta
parent e99287d18a
commit 7c0fa59a0a
7 changed files with 85 additions and 13 deletions

View file

@ -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+