From ac2f38518f6c0aa81fcc622ce5f0ab3b3837dbe0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 12 Mar 2018 12:01:28 +0100 Subject: secrets.yml: Add `tomtom_api_key` Make the TomTom API key accessible to the application. It gets set in Docker via an environment variable. Still need to work out how we're setting it in development. For now I'm just saving it in `secrets.yml` without committing it. Refs #6095 --- lib/tom_tom.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tom_tom.rb') diff --git a/lib/tom_tom.rb b/lib/tom_tom.rb index 4a6a58df0..58604c347 100644 --- a/lib/tom_tom.rb +++ b/lib/tom_tom.rb @@ -1,6 +1,6 @@ class TomTom BASE_URL = 'https://api.tomtom.com' - API_KEY = '' + API_KEY = Rails.application.secrets.tomtom_api_key def initialize @connection = Faraday.new( -- cgit v1.2.3