Sha256: 58cf766d9011a26a73cae33db05e6698e211e566ebddf745870a92531bb4711c

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

CSV.generate(col_sep: "\t", row_sep: "\r\n") do |csv|
  csv << (%w(username item_identifier title checked_out_at due_date checked_in_at) << "(created_at: #{Time.zone.now})").flatten
  @checkouts.each do |checkout|
    csv << [
      checkout.try(:username),
      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

3 entries across 3 versions & 1 rubygems

Version Path
enju_circulation-0.3.0 app/views/checkouts/index.txt.ruby
enju_circulation-0.3.0.rc.1 app/views/checkouts/index.txt.ruby
enju_circulation-0.3.0.beta.1 app/views/checkouts/index.txt.ruby