diff --git a/lib/sf.rb b/lib/sf.rb index 07a6bd9..5019d08 100644 --- a/lib/sf.rb +++ b/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'],