app/controllers/alchemy/custom/model/admin/base_controller.rb in alchemy-custom-model-2.1.0 vs app/controllers/alchemy/custom/model/admin/base_controller.rb in alchemy-custom-model-2.1.1

- old
+ new

@@ -227,11 +227,11 @@ CSV.generate(headers: true) do |csv| csv << header_csv @objects.each do |member| csv_row = self.columns_csv.collect do |attr| - member.send attr + render_csv_field member, attr end csv << csv_row end end end @@ -239,9 +239,13 @@ protected def columns_csv table_columns + end + + def render_csv_field obj, attr + obj.send attr end end