Pluralize on root element (param) name
sesch opened this issue · 2 comments
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
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.
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