lib/active_admin/resource_controller/streaming.rb in activeadmin-2.10.0 vs lib/active_admin/resource_controller/streaming.rb in activeadmin-2.10.1
- old
+ new
@@ -22,10 +22,10 @@
headers["X-Accel-Buffering"] = "no"
headers["Cache-Control"] = "no-cache"
headers["Last-Modified"] = Time.current.httpdate
if ActiveAdmin.application.disable_streaming_in.include? Rails.env
- self.response_body = block[""]
+ self.response_body = block[String.new]
else
self.response_body = Enumerator.new &block
end
end