Closed dmolesUC closed 2 years ago
@dmolesUC any reason we don't want to switch to directly call JSONAPI::Serializer.is_collection?
?
Ah, nvm, just saw you answered in the issue. I'll merge this and fix the CI. Sorry about that.
@stas It looks like the build is failing due to an unrelated RuboCop failure. Oops, never mind — I see you saw that.
What is the current behavior?
Non-collection objects with
size
attribute are mistakenly treated as collections, causing serialization to fail (see #75).What is the new behavior?
Only
Enumerables
are treated as collections, cf. the corresponding method in jsonapi-serializer.Fixes #75.
Checklist
Please make sure the following requirements are complete:
Notes
It looks like the build may be currently failing for other reasons?