diff options
author | Mark Rushakof <mark.rushakoff@gmail.com> | 2012-04-27 00:00:30 -0700 |
---|---|---|
committer | Mark Rushakof <mark.rushakoff@gmail.com> | 2012-04-27 00:00:30 -0700 |
commit | 8cc4159018929fb4b0aa431b7041f6a66f160180 (patch) | |
tree | 3b6028a1cebeda9bb7a4f1babaf539a09d045289 /actionpack/lib/action_controller/metal/streaming.rb | |
parent | 504e539166ab3528e6377ae8bcf5ddacb3572729 (diff) | |
download | rails-8cc4159018929fb4b0aa431b7041f6a66f160180.tar.gz rails-8cc4159018929fb4b0aa431b7041f6a66f160180.tar.bz2 rails-8cc4159018929fb4b0aa431b7041f6a66f160180.zip |
Use <tt>Foo::Bar</tt> instead of +Foo::Bar+
The latter doesn't render as code in HTML output.
Regex used in Rubymine to locate the latter form:
(\+)(:*\w+:(?::|\w)+)(\+)
Diffstat (limited to 'actionpack/lib/action_controller/metal/streaming.rb')
-rw-r--r-- | actionpack/lib/action_controller/metal/streaming.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/streaming.rb b/actionpack/lib/action_controller/metal/streaming.rb index 52aaed0ed4..eeb37db2e7 100644 --- a/actionpack/lib/action_controller/metal/streaming.rb +++ b/actionpack/lib/action_controller/metal/streaming.rb @@ -139,17 +139,17 @@ module ActionController #:nodoc: # session or flash after the template starts rendering will not propagate # to the client. # - # If you try to modify cookies, session or flash, an +ActionDispatch::ClosedError+ + # If you try to modify cookies, session or flash, an <tt>ActionDispatch::ClosedError</tt> # will be raised, showing those objects are closed for modification. # # == Middlewares # # Middlewares that need to manipulate the body won't work with streaming. # You should disable those middlewares whenever streaming in development - # or production. For instance, +Rack::Bug+ won't work when streaming as it + # or production. For instance, <tt>Rack::Bug</tt> won't work when streaming as it # needs to inject contents in the HTML body. # - # Also +Rack::Cache+ won't work with streaming as it does not support + # Also <tt>Rack::Cache</tt> won't work with streaming as it does not support # streaming bodies yet. Whenever streaming Cache-Control is automatically # set to "no-cache". # |