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
Assuming there's an endpoint account/:id/foo that updates the account and returns:
account/:id/foo
{ "account": { "id": 1 } }
class Account include Her::Model include_root_in_json true parse_root_in_json true, format: :active_model_serializers custom_put :foo end Account.foo(id: 1) # => NoMethodError: undefined method `map' for nil:NilClass # => from ~/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/her-0.9.0/lib/her/model/attributes.rb:37:in `initialize_collection'
The text was updated successfully, but these errors were encountered:
same problem here with custom_patch which returns an object instead of an array. @pablocrivella did you solve this or it is still a bug?
Sorry, something went wrong.
No branches or pull requests
Assuming there's an endpoint
account/:id/foo
that updates the account and returns:The text was updated successfully, but these errors were encountered: