Module: ActionController::Streaming::ClassMethods
- Defined in:
- actionpack/lib/action_controller/metal/streaming.rb
Instance Method Summary collapse
-
#stream(options = {}) ⇒ Object
Render streaming templates.
Instance Method Details
#stream(options = {}) ⇒ Object
Render streaming templates. It accepts :only, :except, :if and :unless as options to specify when to stream, as in ActionController filters.
208 209 210 211 212 213 214 215 |
# File 'actionpack/lib/action_controller/metal/streaming.rb', line 208 def stream(={}) ActiveSupport::Deprecation.warn "stream class method is deprecated. Please give the :stream option to render instead" if defined?(Fiber) before_filter :_stream_filter, else raise "You cannot use streaming if Fiber is not available." end end |