README.md in csb-0.7.0 vs README.md in csb-0.8.0
- old
+ new
@@ -35,10 +35,11 @@
# When there are many records with decorator
# csv.items = @reports.find_each.lazy.map(&:decorate)
# csv.filename = "reports_#{Time.current.to_i}.csv"
# csv.streaming = false
+# csv.csv_options = { col_sep: "\t" }
csv.cols.add('Update date') { |r| l(r.updated_at.to_date) }
csv.cols.add('Categories') { |r| r.categories.pluck(:name).join(' ') }
csv.cols.add('Content', :content)
csv.cols.add('Empty')
@@ -128,9 +129,10 @@
```ruby
Csb.configure do |config|
config.utf8_bom = true # default: false
config.streaming = false # default: true
+ config.csv_options = { col_sep: "\t" } # default: {}
config.after_streaming_error = ->(error) do # default: nil
Rails.logger.error(error)
Bugsnag.notify(error)
end
end