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

Pluralize on root element (param) name #70

Closed
sesch opened this issue Sep 6, 2012 · 2 comments
Closed

Pluralize on root element (param) name #70

sesch opened this issue Sep 6, 2012 · 2 comments

Comments

@sesch
Copy link

sesch commented Sep 6, 2012

When you want to supply the data in an json object like {response: [{object: ...},{object: ...}], status: "Ok" } its not possible to disable the pluralize call on the root param (here response) so it is always returned as responses when the api returns multiple elements
This is more of an feature request and thanks for the great gem

@blanchma
Copy link

I'm in the same problem. I need to remove the root element in collections as you usually do with
ActiveRecord::Base.include_root_in_json = false
without removing the child roots.

@fabrik42
Copy link
Owner

Hi!
If you provide a proof of concept I will happily review it. :)
Thanks for your feedback, I really hope you got your problem solved.

I'll close this for now, but feel free to re-open it if you still face problems or have questions.

Cheers,

Christian

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

3 participants