Fix for build breakage

This commit is contained in:
Sarah Mei 2010-10-25 21:38:53 -07:00
parent a1d00d41e5
commit 33410899d9

View file

@ -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