Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'dshafer-erb-config'
ij committed Apr 18, 2018
2 parents 728e06c + 751eaff commit 9faf6f9
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 9faf6f9

Please sign in to comment.