openSUSE/osem

View on GitHub
app/views/admin/registrations/index.csv.haml

Summary

Maintainability
Test Coverage
- headers = ['Attended',
             'Name',
             'Nickname',
             'Affilιation',
             'Email',
             'Arrival',
             'Departure']
= CSV.generate_line headers
- @registrations.each do |registration|
  = CSV.generate_line([registration.attended ? 'X' : '',
                       registration.name,
                       registration.nickname,
                       registration.affiliation,
                       registration.email,
                       registration.arrival.to_s,
                       registration.departure.to_s])