Fix 0.10.6 regression; make using belongs_to on self opt-in

This commit is contained in:
Benjamin Fleischer
2017-11-06 22:04:50 -06:00
parent 00a47d3da4
commit 3dd6cccb4d
3 changed files with 19 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ module ActiveModel
# Make JSON API top-level jsonapi member opt-in
# ref: http://jsonapi.org/format/#document-top-level
config.jsonapi_include_toplevel_object = false
config.jsonapi_use_foreign_key_on_belongs_to_relationship = false
config.include_data_default = true
# For configuring how serializers are found.