Method: Marty::DataGrid#export
- Defined in:
- app/models/marty/data_grid.rb
#export ⇒ Object
568 569 570 571 572 573 574 575 576 577 578 579 |
# File 'app/models/marty/data_grid.rb', line 568 def export # return null string when called from Netzke on add_in_form return '' if .nil? && data.nil? , h_key_rows, data_rows = export_array Marty::DataExporter. to_csv( + [[]] + h_key_rows + data_rows, 'col_sep' => "\t", ). gsub(/\"\"/, '') # remove "" to beautify output end |