mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add default_includes configuration
This is useful to set application-wide default behavior - e.g. in previous versions of AMS the default behavior was to serialize the full object graph by default - equivalent to the '**' include tree. Currently just the global setting, but I think this could also work on a per-serializer basis, with more attention.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
Breaking changes:
|
||||
|
||||
Features:
|
||||
- [#1426](https://github.com/rails-api/active_model_serializers/pull/1426) Add ActiveModelSerializers.config.default_includes (@empact)
|
||||
|
||||
Fixes:
|
||||
- [#1710](https://github.com/rails-api/active_model_serializers/pull/1710) Prevent association loading when `include_data` option
|
||||
|
||||
Reference in New Issue
Block a user