Rebuild rubocop TODOs after auto-correcting

This commit is contained in:
James Mason 2018-04-04 10:18:51 -07:00
parent 31c50255e9
commit 84dbb52d11
No known key found for this signature in database
GPG key ID: 1B3951886C449023
580 changed files with 3689 additions and 3133 deletions

View file

@ -1,17 +1,19 @@
# frozen_string_literal: true
wb = xlsx_package.workbook
wb.add_worksheet(name: 'registrations') do |sheet|
bold_style = wb.styles.add_style(b: true)
row = ['Attended', 'Name', 'Nickname', 'Affilιation', 'Email', 'Arrival', 'Departure']
row = %w[Attended Name Nickname Affilιation Email Arrival Departure]
@conference.questions.each do |question|
row << question.title
end
sheet.add_row row, :style => bold_style
sheet.add_row row, style: bold_style
@registrations.each do |registration|
row = []
row << ( registration.attended ? 'X' : '' )
row << (registration.attended ? 'X' : '')
row << registration.name
row << registration.nickname
row << registration.affiliation
@ -20,7 +22,7 @@ wb.add_worksheet(name: 'registrations') do |sheet|
row << registration.departure.to_s
@conference.questions.each do |question|
qa = registration.qanswers.find_by(question: question)
answer = ( qa ? qa.answer.title : '' )
answer = (qa ? qa.answer.title : '')
row << answer
end
@ -28,4 +30,3 @@ wb.add_worksheet(name: 'registrations') do |sheet|
sheet.add_row row
end
end