lib/tasks/export.rake in open_conference_ware-1.0.0.pre3 vs lib/tasks/export.rake in open_conference_ware-1.0.0.pre4
- old
+ new
@@ -58,10 +58,10 @@
event = ENV['EVENT'].nil? ? OpenConferenceWare::Event.current : OpenConferenceWare::Event.find_by_slug(ENV['EVENT'])
CSV.open('session_cards.csv','w') do |csv|
csv << %w(room start_time title speakers)
event.proposals.confirmed.order('start_time ASC').each do |session|
row = []
- row << session.room.ergo.name
+ row << (session.room ? session.room.name : '')
row << session.start_time.strftime("%A, %B %d, %I:%M%p")
row << session.title
row << session.users.map{|u| u.fullname}.join(', ')
csv << row
end