Sha256: d052fd55f38ad8e60283ffb51f73fecb52e7d90e20739ad3f144b7a16f53739a
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
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.item.item_identifier, checkout.item.manifestation.original_title, checkout.created_at, checkout.due_date, checkout.checkin.try(:created_at) ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_circulation-0.3.1 | app/views/checkouts/index.txt.ruby |