lib/quandl/client/base.rb in quandl_client-2.2.1 vs lib/quandl/client/base.rb in quandl_client-2.2.2
- old
+ new
@@ -54,10 +54,13 @@
end
protected
def models_use_her_api!
- models.each{|m| m.use_api( her_api ) }
+ models.each{|m|
+ m.url = url
+ m.use_api( her_api )
+ }
end
class TokenAuthentication < Faraday::Middleware
def call(env)
env[:request_headers]["X-API-Token"] = Quandl::Client::Base.token if Quandl::Client::Base.token.present?
\ No newline at end of file