Skip to content

500 error when including relationship name in attributes hash #697

Open
@arcreative

Description

@arcreative

Say I have a record post that has_one author... Including author in the attributes hash instead of the relationships hash causes jsonapi-resources to 500 with the following:

Internal Server Error: no implicit conversion of nil into Hash /Users/adam/.rvm/gems/ruby-2.2.3/gems/jsonapi-resources-0.7.0/lib/jsonapi/resource.rb:683:in `merge'

My guess is because this is a valid relationship name, but is not a valid attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions