Skip to content

Commit 3c2e838

Browse files
authored
Merge pull request #1557 from ka8725/master
Update upgrading notes for 0.12.0 release
2 parents 0a0f7e4 + 3bb11e5 commit 3c2e838

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

UPGRADING.md

+13
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,19 @@ end
299299

300300
See [#1029](https://github.com/ruby-grape/grape/pull/1029) for more information.
301301

302+
There is a known issue because of this change. When Grape is used with an older
303+
than 1.2.4 version of [warden](https://github.com/hassox/warden) there may be raised
304+
the following exception having the [rack-mount](https://github.com/jm/rack-mount) gem's
305+
lines as last ones in the backtrace:
306+
307+
```
308+
NoMethodError: undefined method `[]' for nil:NilClass
309+
```
310+
311+
The issue can be solved by upgrading warden to 1.2.4 version.
312+
313+
See [#1151](https://github.com/ruby-grape/grape/issues/1151) for more information.
314+
302315
#### Changes in present
303316

304317
Using `present` with objects that responded to `merge` would cause early evaluation of the represented object, with unexpected side-effects, such as missing parameters or environment within rendering code. Grape now only merges represented objects with a previously rendered body, usually when multiple `present` calls are made in the same route.

0 commit comments

Comments
 (0)