app/models/locomotive/extensions/content_entry/csv.rb in locomotive_cms-2.1.3 vs app/models/locomotive/extensions/content_entry/csv.rb in locomotive_cms-2.1.4
- old
+ new
@@ -60,13 +60,13 @@
fields = content_type.ordered_entries_custom_fields
CSV.generate(csv_options) do |csv|
# header
- csv << fields.map(&:label)
+ csv << (fields.map(&:label) + [I18n.t('mongoid.attributes.locomotive/content_entry.created_at')])
# body
all.each do |entry|
- csv << entry.to_values(options)
+ csv << (entry.to_values(options) + [I18n.l(entry.created_at, format: :long)])
end
end
end
end
\ No newline at end of file