If you misconfigure your class option, you're greeted with undefined method 'new' for nil:NilClass. I understand why this error occurs, but for a complex graph, it can be difficult to figure out which serializer it tried to construct.
Seems like it would be possible to print the expected name of the class in the error message like instead:
If you misconfigure your
class
option, you're greeted withundefined method 'new' for nil:NilClass
. I understand why this error occurs, but for a complex graph, it can be difficult to figure out which serializer it tried to construct.Seems like it would be possible to print the expected name of the class in the error message like instead: