From 7cd02b901c2a1651af87ab6efe065605143d7346 Mon Sep 17 00:00:00 2001 From: Eric Proulx Date: Sun, 20 Oct 2024 15:57:39 +0200 Subject: [PATCH] Fix upgrading --- UPGRADING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADING.md b/UPGRADING.md index f1826c7b9..0c6c54f6e 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -5,9 +5,9 @@ Upgrading Grape ### `content_type` vs `api.format` inside API -Before 2.3.0, `content_type` would have priority over `env['api.format']` when set in an API. The priority has been flipped and `env['api.format']` will be checked first. +Before 2.3.0, `content_type` had priority over `env['api.format']` when set in an API, which was incorrect. The priority has been flipped and `env['api.format']` will be checked first. In addition, the function `api_format` has been added. Instead of setting `env['api.format']` directly, you can call `api_format`. -See [#2506] (https://github.com/ruby-grape/grape/pull/2506) for more information. +See [#2506](https://github.com/ruby-grape/grape/pull/2506) for more information. #### Remove Deprecated Methods and Options