Skip to content

Instantly share code, notes, and snippets.

@trivektor
Created May 26, 2012 03:25
Show Gist options
  • Select an option

  • Save trivektor/2791980 to your computer and use it in GitHub Desktop.

Select an option

Save trivektor/2791980 to your computer and use it in GitHub Desktop.
config.action_controller.asset_host = Proc.new { |source, request = nil, *_|
request && request.ssl? ? 'https://s3.amazonaws.com/my_bucket' : 'http://s3.my-domain.com'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment