app/models/locomotive/concerns/content_entry/csv.rb in locomotivecms-3.0.0.rc3 vs app/models/locomotive/concerns/content_entry/csv.rb in locomotivecms-3.0.0.rc4
- old
+ new
@@ -54,9 +54,13 @@
# @param [ Hash ] options Options for the csv generation
#
# @return [ String ] The well-generated CSV document
#
def to_csv(options = {})
+ # puts "to_csv #{all.count.inspect} / #{all.first.inspect}"
+ # puts "#{all.first.content_type_id.inspect}"
+ # puts "#{all.first.content_type.inspect}"
+ # binding.pry
content_type = options.delete(:content_type) || all.first.try(:content_type)
csv_options = options.select do |k, v|
CSV::DEFAULT_OPTIONS.keys.include?(k.to_sym)
end