Fix for build breakage
This commit is contained in:
parent
a1d00d41e5
commit
33410899d9
1 changed files with 8 additions and 5 deletions
|
|
@ -8,9 +8,12 @@ end
|
|||
|
||||
oauth_keys_file = "#{Rails.root}/config/oauth_keys.yml"
|
||||
|
||||
if File.exist? oauth_keys_file
|
||||
SERVICES = load_config_yaml(oauth_keys_file)
|
||||
end
|
||||
|
||||
SERVICES ||= load_config_yaml("#{oauth_keys_file}.example")
|
||||
|
||||
SERVICES = nil
|
||||
silence_warnings do
|
||||
if File.exist? oauth_keys_file
|
||||
SERVICES = load_config_yaml(oauth_keys_file)
|
||||
else
|
||||
SERVICES = load_config_yaml("#{oauth_keys_file}.example")
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue