You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CsvExport#render_collection(a_collection) method currently uses the fields passed into CsvExport.new to read column values from the objects in a_collection. This makes it really easy to provide clear-cut CSV exports.
However, sometimes we want to name columns just a little bit different than their underlying field name or virtual attribute.
For example, we could update the #new method to support the following:
The
CsvExport#render_collection(a_collection)
method currently uses the fields passed intoCsvExport.new
to read column values from the objects ina_collection
. This makes it really easy to provide clear-cut CSV exports.However, sometimes we want to name columns just a little bit different than their underlying field name or virtual attribute.
For example, we could update the
#new
method to support the following:The text was updated successfully, but these errors were encountered: