Skip to content

Instantly share code, notes, and snippets.

@ultraspeed
Created January 21, 2010 14:05
Show Gist options
  • Save ultraspeed/282809 to your computer and use it in GitHub Desktop.
Save ultraspeed/282809 to your computer and use it in GitHub Desktop.
ActionController::Base.asset_host = Proc.new do |source|
# This will give you asset1-asset8.example.com
"http://assets#{rand(8) + 1}.example.com"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment