technoweenie/faraday — Issue #121: Automatically set @handler to Faraday.default_adapter if left unspecified.
Author: envygeeks
Created: 2012-02-22 20:14:24+00:00
State: open

Normally for our simple scripts we set Faraday.default_adapter once at the top however while working with Github who (no offense) loves redirects we have to use faraday_middleware (well not have to use) to follow redirects which requires us to do a block (I assume) I think it would be better if Faraday assumed the handler should be set to Faraday.default_adapater if it's not set with use in the block, this saves some coding and redundant code IMO.