Skip to content

Instantly share code, notes, and snippets.

@thomasvanholder
Last active January 22, 2021 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasvanholder/8d35c94bbfe00fcb8922f93f9fd8d736 to your computer and use it in GitHub Desktop.
Save thomasvanholder/8d35c94bbfe00fcb8922f93f9fd8d736 to your computer and use it in GitHub Desktop.
How to use credentials in ruby
# nested key
Rails.application.credentials.stripe[:publishable_key]
# single key
Rails.application.credentials.google_api_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment