instance method _render_template

Ruby on Rails 6.1.7.10

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

_render_template(options)

Call render_body if we are streaming instead of usual render.

Parameters

options req
Source
# File actionpack/lib/action_controller/metal/streaming.rb, line 214
      def _render_template(options)
        if options.delete(:stream)
          Rack::Chunked::Body.new view_renderer.render_body(view_context, options)
        else
          super
        end
      end

Defined in actionpack/lib/action_controller/metal/streaming.rb line 214 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Streaming

Type at least 2 characters to search.

↑↓ navigate · open · esc close