app/views/checkouts/index.txt.ruby in enju_circulation-0.3.1 vs app/views/checkouts/index.txt.ruby in enju_circulation-0.3.2
- old
+ new
@@ -1,10 +1,10 @@
CSV.generate(col_sep: "\t", row_sep: "\r\n") do |csv|
csv << (%w(username user_number item_identifier title checked_out_at due_date checked_in_at) << "(created_at: #{Time.zone.now})").flatten
@checkouts.each do |checkout|
csv << [
checkout.user.try(:username),
- checkout.user.try(:user_number),
+ checkout.user.try(:profile).try(:user_number),
checkout.item.item_identifier,
checkout.item.manifestation.original_title,
checkout.created_at,
checkout.due_date,
checkout.checkin.try(:created_at)