load oauth_keys.yml.example as default so I don't have to touch my oauth_keys.yml to have the specs pass on my machine
This commit is contained in:
parent
586746868c
commit
41effa7bd2
1 changed files with 3 additions and 4 deletions
|
|
@ -11,9 +11,8 @@ oauth_keys_file = "#{Rails.root}/config/oauth_keys.yml"
|
||||||
|
|
||||||
SERVICES = nil
|
SERVICES = nil
|
||||||
silence_warnings do
|
silence_warnings do
|
||||||
|
SERVICES = load_config_yaml("#{oauth_keys_file}.example")
|
||||||
if File.exist? oauth_keys_file
|
if File.exist? oauth_keys_file
|
||||||
SERVICES = load_config_yaml(oauth_keys_file)
|
SERVICES.deep_merge(load_config_yaml(oauth_keys_file))
|
||||||
else
|
|
||||||
SERVICES = load_config_yaml("#{oauth_keys_file}.example")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue