Skip to content

Instantly share code, notes, and snippets.

@gvarela
Created May 7, 2009 18:29
Show Gist options
  • Save gvarela/108262 to your computer and use it in GitHub Desktop.
Save gvarela/108262 to your computer and use it in GitHub Desktop.
config.action_controller.asset_host = Proc.new { |source|
if source.starts_with?('/javascripts') || source.starts_with?('/stylesheets')
nil # bundle_fu friendly
else
"http://asset%d.domain.com" % ( (source.hash % 4) )
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment