mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix 0.10.6 regression; make using belongs_to on self opt-in
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user