Methods

Class/Module Index [+]

Quicksearch

ActionController::Streaming::ClassMethods

Public Instance Methods

stream(options={}) click to toggle source

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

# File 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.