Skip to content

Instantly share code, notes, and snippets.

@r38y
Created December 2, 2010 05:20
Show Gist options
  • Save r38y/724812 to your computer and use it in GitHub Desktop.
Save r38y/724812 to your computer and use it in GitHub Desktop.
config.action_controller.asset_host = Proc.new do |source, request|
"#{request.protocol}asset#{source.hash % 4}.#{CONFIG.domain}"
end if ['staging', 'production', 'development'].include?(Rails.env)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment