From 0d400ae5b99fface36b080e65adaedc029b136cb Mon Sep 17 00:00:00 2001 From: Nick Howard Date: Sat, 30 Jun 2012 16:01:57 -0600 Subject: use config.action_controller instead of ActionController::Base in example code for asset_tag_helper --- actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index 02c1250c76..68b0195700 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -95,7 +95,7 @@ module ActionView # have SSL certificates for each of the asset hosts this technique allows you # to avoid warnings in the client about mixed media. # - # ActionController::Base.asset_host = Proc.new { |source, request| + # config.action_controller.asset_host = Proc.new { |source, request| # if request.ssl? # "#{request.protocol}#{request.host_with_port}" # else -- cgit v1.2.3 From 167a0b9e83222a4bd16240932a55c1fd7a72dc44 Mon Sep 17 00:00:00 2001 From: Nick Howard Date: Sat, 30 Jun 2012 16:04:08 -0600 Subject: ActionDispatch::ClosedError no longer is raised. See d142572567 for more info. --- actionpack/lib/action_controller/metal/streaming.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/metal/streaming.rb b/actionpack/lib/action_controller/metal/streaming.rb index eeb37db2e7..9f3c997024 100644 --- a/actionpack/lib/action_controller/metal/streaming.rb +++ b/actionpack/lib/action_controller/metal/streaming.rb @@ -139,9 +139,6 @@ 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 - # will be raised, showing those objects are closed for modification. - # # == Middlewares # # Middlewares that need to manipulate the body won't work with streaming. -- cgit v1.2.3