Skip to content

Instantly share code, notes, and snippets.

@jeremy-wagner
Created October 16, 2020 23:42
Show Gist options
  • Save jeremy-wagner/e5f64c5f85746ed8f5ced4672c47d6ac to your computer and use it in GitHub Desktop.
Save jeremy-wagner/e5f64c5f85746ed8f5ced4672c47d6ac to your computer and use it in GitHub Desktop.
def cdn_for(file)
"#{ENV['CDN_URL']}/#{file.key}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment