instance method
_render_template
Ruby on Rails 8.0.4
Since v5.2.8.1 PrivateSignature
_render_template(options)
Call render_body if we are streaming instead of usual render.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_controller/metal/streaming.rb, line 172
def _render_template(options)
if options.delete(:stream)
# It shouldn't be necessary to set this.
headers["cache-control"] ||= "no-cache"
view_renderer.render_body(view_context, options)
else
super
end
end
Defined in actionpack/lib/action_controller/metal/streaming.rb line 172
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Streaming