Skip to content

Commit af11a32

Browse files
committed
Add CHANGELOG and UPGRADING.md
1 parent 3fc99b1 commit af11a32

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#### Fixes
1212

1313
* [#2504](https://github.com/ruby-grape/grape/pull/2504): Fix leaky modules in specs - [@ericproulx](https://github.com/ericproulx).
14+
* [#2506](https://github.com/ruby-grape/grape/pull/2506): Fix fetch_formatter api_format - [@ericproulx](https://github.com/ericproulx).
1415
* Your contribution here.
1516

1617
### 2.2.0 (2024-09-14)

UPGRADING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ Upgrading Grape
33

44
### Upgrading to >= 2.3.0
55

6+
### `content_type` vs `api.format` inside API
7+
8+
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.
9+
In addition, the function `api_format` has been added. Instead of setting `env['api.format']` directly, you can call `api_format`.
10+
See [#2506] (https://github.com/ruby-grape/grape/pull/2506) for more information.
11+
612
#### Remove Deprecated Methods and Options
713

814
- Deprecated `file` method has been removed. Use `send_file` or `stream`.

0 commit comments

Comments
 (0)