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
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: