Module: TemplateStreaming

Defined in:
lib/template_streaming.rb,
lib/template_streaming/caching.rb,
lib/template_streaming/version.rb,
lib/template_streaming/new_relic.rb,
lib/template_streaming/autoflushing.rb,
lib/template_streaming/error_recovery.rb

Defined Under Namespace

Modules: AbstractSessionStoreExtension, Autoflushing, Caching, Controller, CookieSessionStoreExtension, ErrorRecovery, NewRelic, Response, View Classes: StreamingBody

Constant Summary collapse

STREAMING_KEY =
'template_streaming.streaming'.freeze
VERSION =
[0, 1, 0]

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.autoflushObject

If non-nil, #flush will automatically be called when streaming before and after each render call.

The value of this attribute should be a number, which is the number of milliseconds since the last flush that should elapse for the autoflush to occur. 0 means force a flush every time.



11
12
13
# File 'lib/template_streaming/autoflushing.rb', line 11

def autoflush
  @autoflush
end

Class Method Details

.configure(config) ⇒ Object



3
4
5
6
7
# File 'lib/template_streaming.rb', line 3

def configure(config)
  config.each do |key, value|
    send "#{key}=", value
  end
end