diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index bfda866a5566497fbf1178adadcde777b54289f4..63b181509a024f74d99af24e276072503ca8f404 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -22,7 +22,7 @@ module Helpers #:nodoc: # For example, you'd define assets.example.com to be your asset # host this way: # - # ActionController::Base.asset_host = "assets.example.com" + # config.action_controller.asset_host = "assets.example.com" # # Helpers take that into account: # @@ -55,7 +55,7 @@ module Helpers #:nodoc: # Alternatively, you can exert more control over the asset host by setting # +asset_host+ to a proc like this: # - # ActionController::Base.asset_host = Proc.new { |source| + # config.action_controller.asset_host = Proc.new { |source| # "http://assets#{rand(2) + 1}.example.com" # } # image_tag("rails.png") @@ -71,7 +71,7 @@ module Helpers #:nodoc: # absolute path of the asset with any extensions and timestamps in place, # for example "/images/rails.png?1230601161". # - # ActionController::Base.asset_host = Proc.new { |source| + # config.action_controller.asset_host = Proc.new { |source| # if source.starts_with?('/images') # "http://images.example.com" # else @@ -90,7 +90,7 @@ module Helpers #:nodoc: # 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