Skip to content
New issue

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

Serializing an array of object should use the object serializer for individual objects #116

Closed
yacc opened this issue Oct 20, 2014 · 2 comments

Comments

@yacc
Copy link

yacc commented Oct 20, 2014

rocket_pant version 1.10.0 ignores the individual object serializer when serializing an array of that object.
rocket_pants should be to be consistent with ActiveModelSerializer behavior:

from ActiveModelSerializer 0.9.0

In your controllers, when you use render :json for an array of objects, AMS will use
ActiveModel::ArraySerializer (included in this project) as the base serializer, and the individual
Serializer for the objects contained in that array.

@Sutto
Copy link
Owner

Sutto commented Nov 16, 2014

I'm closing this for the moment @yacc, as it's a duplicate of #112 which I'm working on right now.

@Sutto Sutto closed this as completed Nov 16, 2014
@Sutto
Copy link
Owner

Sutto commented Nov 16, 2014

See #110 sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants