You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: UPGRADING.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,12 @@ Upgrading Grape
3
3
4
4
### Upgrading to >= 2.3.0
5
5
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
+
6
12
#### Remove Deprecated Methods and Options
7
13
8
14
- Deprecated `file` method has been removed. Use `send_file` or `stream`.
0 commit comments