Skip to content

Commit

Permalink
Doc: upgrading from faraday 1 (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Cohnen <[email protected]>
  • Loading branch information
jaredbeck and tisba authored Jan 20, 2024
1 parent 2e52bfd commit 296328e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ Faraday.new(url: url) do |faraday|
end
```

## Upgrading from Faraday 1.x

If you still use Faraday 1.x, and have uninstalled the `faraday_middleware` gem, all you have to change is:

```diff
- conn.use FaradayMiddleware::FollowRedirects
+ conn.use Faraday::FollowRedirects::Middleware
```

## Development

After checking out the repo, run `bin/setup` to install dependencies.
Expand Down

0 comments on commit 296328e

Please sign in to comment.