Commit 9cf5d0b
committed
Fix Time serialization regression introduced by dropping MultiJson
JSON.dump bypasses ActiveSupport's Hash#to_json override, causing
Time values to serialize via Time#to_s ("2026-04-16 10:55:10 UTC")
instead of ActiveSupport's as_json ("2026-04-16T10:55:10.597Z").
Replace Json.dump with Hash#to_json which properly delegates through
ActiveSupport and remove the now-unused Grape::Entity::Json constant.
Fixes #4031 parent a4e3fcd commit 9cf5d0b
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
594 | 592 | | |
595 | 593 | | |
596 | 594 | | |
| 595 | + | |
597 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
598 | 602 | | |
599 | 603 | | |
600 | 604 | | |
| |||
0 commit comments