Module: TemplateStreaming
- Defined in:
- lib/template_streaming.rb,
lib/template_streaming/version.rb,
lib/template_streaming/error_recovery.rb
Defined Under Namespace
Modules: Controller, ErrorRecovery, Response, View Classes: StreamingBody
Constant Summary collapse
- VERSION =
[0, 0, 11]
Class Attribute Summary collapse
-
.autosweep_flash ⇒ Object
If true, always reference the flash before returning from the action when rendering progressively.
-
.set_authenticity_token ⇒ Object
If true, always set the authenticity token before returning from the action when rendering progressively.
Class Method Summary collapse
Class Attribute Details
.autosweep_flash ⇒ Object
If true, always reference the flash before returning from the action when rendering progressively.
This is required for the flash to work with progressive rendering, but unlike standard Rails behavior, will cause the flash to be swept even if it’s never referenced in the views. This usually isn’t an issue, as flash messages are typically rendered in the layout, causing a reference anyway.
Default: true.
21 22 23 |
# File 'lib/template_streaming.rb', line 21 def autosweep_flash @autosweep_flash end |
.set_authenticity_token ⇒ Object
If true, always set the authenticity token before returning from the action when rendering progressively.
This is required for the authenticity token to work with progressive rendering, but unlike standard Rails behavior, will cause the token to be set (and thus the session updated) even if it’s never referenced in views.
Default: true.
34 35 36 |
# File 'lib/template_streaming.rb', line 34 def set_authenticity_token @set_authenticity_token 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 |