2012-08-26 23:53:30 +00:00
|
|
|
File.open("#{Rails.root}/config/api_keys.yml") do |file|
|
|
|
|
config = YAML.load(file.read)
|
2012-09-01 22:03:19 +00:00
|
|
|
BeatHaven::Application.config.api_accounts = config
|
2012-08-26 23:53:30 +00:00
|
|
|
|
|
|
|
LastFM.api_key = config["lastfm"]["api_key"]
|
|
|
|
LastFM.secret = config["lastfm"]["api_secret"]
|
|
|
|
LastFM.client_name = config["lastfm"]["client_name"]
|
|
|
|
|
2012-09-01 17:55:01 +00:00
|
|
|
Robbie.setup(config["rovi"].symbolize_keys)
|
2012-08-26 23:53:30 +00:00
|
|
|
Robbie.enable_cache
|
|
|
|
end
|