Commit cb72b85
committed
fix: Use endpoint.class instead of endpoint.inspect in error message
Some Grape versions have protected inspect methods on endpoint objects.
Use endpoint.class for the error message instead, which is simpler and
works reliably across all Grape versions (1.8.0, 2.1.3, 2.4.0, 3.0+).
This resolves failures when testing with Ruby 3.1.0 and Grape 2.1.3.1 parent c0d2b72 commit cb72b85
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments