You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classMenuSerializer < ApplicationSerializerhas_many:itemsendclassItemSerializer < ApplicationSerializerbelongs_to:sellable,polymorphic: trueend# In this example, Car is a type of sellable.classCarSerializer < ApplicationSerializerhas_many:photosendclassPhotoSerializer < ApplicationSerializerattribute:urlend
However, object_serializer throws the following error:
photos is not specified as a relationship on ItemSerializer
The offending line in the library seems to be:
raiseArgumentError,"#{parsed_include} is not specified as a relationship on #{klass.name}"unlessrelationship_to_include