Module: Responders::CsvResponder
- Defined in:
- lib/postgres-copy/csv_responder.rb
Instance Method Summary collapse
Instance Method Details
#to_csv ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/postgres-copy/csv_responder.rb', line 3 def to_csv controller.response_body = Enumerator.new do |y| controller.send(:end_of_association_chain).copy_to do |line| y << line end end end |