mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
If you specify include_data false, and do not have any links for this
relationship, we would output something like:
`{ relationships: { comments: {} } }`
This is not valid jsonapi. We will now render
`{ relationships: { comments: { meta: {} } } }`
Instead.
Relevant jsonapi spec: http://jsonapi.org/format/#document-resource-object-relationships
|
||
|---|---|---|
| .. | ||
| action_controller | ||
| active_model_serializers | ||
| adapter | ||
| benchmark | ||
| fixtures | ||
| generators | ||
| serializers | ||
| support | ||
| active_record_test.rb | ||
| adapter_test.rb | ||
| array_serializer_test.rb | ||
| cache_test.rb | ||
| collection_serializer_test.rb | ||
| grape_test.rb | ||
| lint_test.rb | ||
| logger_test.rb | ||
| poro_test.rb | ||
| serializable_resource_test.rb | ||
| test_helper.rb | ||