instance method stream

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.1.12

Signature

stream(options={})

Render streaming templates. It accepts :only, :except, :if and :unless as options to specify when to stream, as in ActionController filters.

Parameters

options opt = {}
Source
# File actionpack/lib/action_controller/metal/streaming.rb, line 208
      def stream(options={})
        ActiveSupport::Deprecation.warn "stream class method is deprecated. Please give the :stream option to render instead"
        if defined?(Fiber)
          before_filter :_stream_filter, options
        else
          raise "You cannot use streaming if Fiber is not available."
        end
      end

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

Defined in ActionController::Streaming::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close