Module: LpCSVExportable::CanExportAsCSV::ClassMethods
- Defined in:
- lib/lp_csv_exportable/can_export_as_csv.rb
Overview
Configuration…
Instance Method Summary collapse
Instance Method Details
#column(header, options = {}) ⇒ Object
70 71 72 73 74 |
# File 'lib/lp_csv_exportable/can_export_as_csv.rb', line 70 def column(header, = {}) column_settings = { header: header } column_settings[:model_method] = header if header.is_a?(Symbol) && [:model_methods].nil? columns_hashes << column_settings.merge() end |
#columns_hashes ⇒ Object
76 77 78 |
# File 'lib/lp_csv_exportable/can_export_as_csv.rb', line 76 def columns_hashes @columns_hashes ||= [] end |