Skip to content

Commit aa2aff5

Browse files
committed
docs: Update README
1 parent 66320d7 commit aa2aff5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ csv.items = @reports
3636
# csv.items = @reports.find_each.lazy.map(&:decorate)
3737

3838
# csv.filename = "reports_#{Time.current.to_i}.csv"
39+
40+
# To enable streaming, you need to include ActionController::Live in the corresponding controller.
3941
# csv.streaming = false
4042

4143
csv.cols.add('Update date') { |r| l(r.updated_at.to_date) }
@@ -129,6 +131,7 @@ In `config/initializers/csb.rb`, you can configure the following values.
129131
```ruby
130132
Csb.configure do |config|
131133
config.utf8_bom = true # default: false
134+
# To enable streaming, you need to include ActionController::Live in the corresponding controller.
132135
config.streaming = false # default: true
133136
config.after_streaming_error = ->(error) do # default: nil
134137
Rails.logger.error(error)

0 commit comments

Comments
 (0)