1
0
Fork 0
oldhaven/config/initializers/lastfm.rb

8 lines
196 B
Ruby

lambda{
require 'yaml'
c = YAML.load(File.read("#{Rails.root}/config/lastfm.yml"))
LastFM.api_key = c['api_key']
LastFM.secret = c['secret']
LastFM.client_name = c['client_name']
}.call