Sha256: c0709b83c223df559a23542b4a267681f2f39e39bd203cb21a31bd5403e58959
Contents?: true
Size: 214 Bytes
Versions: 2
Compression:
Stored size: 214 Bytes
Contents
module Responders::CsvResponder def to_csv controller.response_body = Enumerator.new do |y| controller.send(:end_of_association_chain).pg_copy_to do |line| y << line end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postgres-copy-0.5.5 | lib/postgres-copy/csv_responder.rb |
postgres-copy-0.5.4 | lib/postgres-copy/csv_responder.rb |