diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-25 17:00:52 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-25 17:00:52 -0700 |
commit | 3a109f78cd403e9257a5765b56ee9363deed0aa4 (patch) | |
tree | 29318b7ce2e2a397062eb9c6e407de6c1d948059 /actionpack/lib | |
parent | 933644519c1ea639440379d813876f1edc12ca59 (diff) | |
parent | 53d3bafc8bf3f0cb90a02751aa93b0c30b26ab78 (diff) | |
download | rails-3a109f78cd403e9257a5765b56ee9363deed0aa4.tar.gz rails-3a109f78cd403e9257a5765b56ee9363deed0aa4.tar.bz2 rails-3a109f78cd403e9257a5765b56ee9363deed0aa4.zip |
Merged pull request #277 from kuinak/master.
Correct documentation for asset host strategy for 1.9.2
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/asset_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index f7cb1f5b58..9bc847a1ab 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -57,7 +57,7 @@ module ActionView # +asset_host+ to a proc like this: # # ActionController::Base.asset_host = Proc.new { |source| - # "http://assets#{source.hash % 2 + 1}.example.com" + # "http://assets#{Digest::MD5.hexdigest(source).to_i(16) % 2 + 1}.example.com" # } # image_tag("rails.png") # # => <img alt="Rails" src="http://assets1.example.com/images/rails.png?1230601161" /> |