lib/gowalla/client.rb in gowalla-0.5.5 vs lib/gowalla/client.rb in gowalla-0.5.6
- old
+ new
@@ -36,13 +36,13 @@
#
# @return [Faraday::Connection]
def connection
params = {}
params[:access_token] = @access_token if @access_token
- @connection ||= Faraday::Connection.new(:url => api_url, :params => params, :headers => default_headers) do |builder|
+ @connection ||= Faraday.new(:url => api_url, :params => params, :headers => default_headers) do |builder|
builder.adapter Faraday.default_adapter
- builder.use Faraday::Response::ParseJson
builder.use Faraday::Response::Mashify
+ builder.use Faraday::Response::ParseJson
end
end
# Provides the URL for accessing the API