Commit 489f9b9
Update inspect method to handle nil serializable_hash (#384)
* Update inspect method to handle nil serializable_hash
* Refactor inspect method to use object instead of hash
* Add changelog and rspec
* Update CHANGELOG.md
* Fix rubocop offenses
* Makes nil entity inspect consistent with the Ruby-style #<ClassName:object_id …> format
---------
Co-authored-by: Daniel (dB.) Doubrovkine <[email protected]>
Co-authored-by: Andrei Subbota <[email protected]>1 parent a68e17a commit 489f9b9
File tree
3 files changed
+14
-3
lines changed- lib/grape_entity
- spec/grape_entity
3 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | | - | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
477 | 482 | | |
478 | 483 | | |
479 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1778 | 1778 | | |
1779 | 1779 | | |
1780 | 1780 | | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
1781 | 1786 | | |
1782 | 1787 | | |
1783 | 1788 | | |
| |||
0 commit comments