Commit 374a021
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 b32714d commit 374a021
4 files changed
Lines changed: 18 additions & 17 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 | | |
597 | | - | |
| 595 | + | |
598 | 596 | | |
599 | 597 | | |
600 | 598 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1880 | 1880 | | |
1881 | 1881 | | |
1882 | 1882 | | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
1883 | 1900 | | |
1884 | 1901 | | |
1885 | 1902 | | |
| |||
This file was deleted.
0 commit comments