Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Support string interpolation in config file
dshafer committed Apr 17, 2018
1 parent 728e06c commit 751eaff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sf.rb
@@ -26,7 +26,7 @@ class << self
def client
if @client.nil?
if File.exist?("#{::Rails.root.to_s}/config/restforce.yml")
sfdc_auth_config = YAML.load_file("#{::Rails.root.to_s}/config/restforce.yml")
sfdc_auth_config = YAML.load(ERB.new(File.read("#{::Rails.root.to_s}/config/restforce.yml")).result)
@client = Restforce.new :host => sfdc_auth_config['host'],
:username => sfdc_auth_config['username'],
:password => sfdc_auth_config['password'],

0 comments on commit 751eaff

Please sign in to comment.