Closed mrjonesbot closed 6 years ago
Came across this in the docs:
Relationships
Relationships are declared via the has_many, has_one and belongs_to DSL methods.
belongs_to is actually an alias for has_one, and you can use both interchangeably.
The generator is working as intended, thank you!
When defining a serializable resource with the provided generator,
jsonapi-rails
declareshas_one
relationships in the serializer despite the resource specifying abelongs_to
association.ruby -v
2.5.0
rails -v5.1.4
model:
generator command:
output: