Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated examples to use latest config structure

  • Loading branch information...
commit bd918ce75f300d8b8fef23b04ffa4bd9add0f6dc 1 parent 358ed90
@lloydpick lloydpick authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_view/helpers/asset_tag_helper.rb
View
8 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -22,7 +22,7 @@ module Helpers #:nodoc:
# 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 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
Please sign in to comment.
Something went wrong with that request. Please try again.