diff options
| author | Teddy Wing | 2018-03-12 12:01:28 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2018-03-14 16:38:39 +0100 | 
| commit | ac2f38518f6c0aa81fcc622ce5f0ab3b3837dbe0 (patch) | |
| tree | cbb73b5f79a73dd2f969b6fe4d54fbde96ef0309 /lib | |
| parent | af4e70fc1c0ef7d74429b0a6507182a6b34ec721 (diff) | |
| download | chouette-core-ac2f38518f6c0aa81fcc622ce5f0ab3b3837dbe0.tar.bz2 | |
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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tom_tom.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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( | 
