Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Read yml as erb
Browse files Browse the repository at this point in the history
  • Loading branch information
inoue committed Jul 17, 2015
1 parent d978ca0 commit a7e5f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fitbit.rb
Expand Up @@ -6,7 +6,7 @@ class Fitbit

def initialize(options = {})
@options = options
@config = Fitgem::Client.symbolize_keys YAML.load(File.open(".fitbit.yml"))
@config = Fitgem::Client.symbolize_keys YAML.load(ERB.new(File.open(".fitbit.yml")).result)
@client = Fitgem::Client.new config[:oauth].merge!(options)
end

Expand Down

0 comments on commit a7e5f0e

Please sign in to comment.