aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLloyd Pick <lloydpick@gmail.com>2009-05-24 15:15:02 -0400
committerLloyd Pick <lloydpick@gmail.com>2009-05-24 15:15:02 -0400
commitbd918ce75f300d8b8fef23b04ffa4bd9add0f6dc (patch)
tree30b2161e57abb022e0459972bfebe0b26b85935a
parent358ed90fe52f3cf89f1aaf22ae07695b06bbbe1a (diff)
downloadrails-bd918ce75f300d8b8fef23b04ffa4bd9add0f6dc.tar.gz
rails-bd918ce75f300d8b8fef23b04ffa4bd9add0f6dc.tar.bz2
rails-bd918ce75f300d8b8fef23b04ffa4bd9add0f6dc.zip
Updated examples to use latest config structure
-rw-r--r--actionpack/lib/action_view/helpers/asset_tag_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb
index bfda866a55..63b181509a 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 ActionView
# For example, you'd define <tt>assets.example.com</tt> 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 ActionView
# 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 ActionView
# 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 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