We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fast_jsonapi version: 1.5 The object serializer is working fine if an array of objects is passed to serializer:
def index contents = Content.page params[:page] render json: ContentSerializer.new(contents) end
But it doesn't work for single object
def show options = {} options[:include] = %i[content_texts image_labels] render json: ContentSerializer.new(@content).serializable_hash, status: 200 end
The text was updated successfully, but these errors were encountered:
FYI #462
Sorry, something went wrong.
@SahSantoshh Since you haven't posted any issue backtrace or error.
I am guessing the Content model has :size attribute or method defined on it which causes the issue.
:size
Try to use the new repo which doesn't have this issue https://github.com/jsonapi-serializer/jsonapi-serializer
No branches or pull requests
fast_jsonapi version: 1.5
The object serializer is working fine if an array of objects is passed to serializer:
But it doesn't work for single object
The text was updated successfully, but these errors were encountered: