```ruby
# frozen_string_literal: true
ActionController::Renderers.add :csv do |object, _|
  send_data object.csv, type: Mime::CSV, disposition: 'attachment; filename=data.csv'
end
```

Remove `Mime` access deprecation warning
user
```ruby
# frozen_string_literal: true
ActionController::Renderers.add :csv do |object, _|
  send_data object.csv, type: Mime[:csv], disposition: 'attachment; filename=data.csv'
end
```
assistant