mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
embed :objects is the default
A commit with an integration test that covers this functionality is coming after this one
This commit is contained in:
parent
4f70dc2091
commit
4b91d0e5ec
@ -8,7 +8,7 @@ module ActiveModel
|
||||
@name = name.to_s
|
||||
@options = options
|
||||
|
||||
self.embed = options[:embed] || SETTINGS[:embed]
|
||||
self.embed = options[:embed] || SETTINGS[:embed] || :objects
|
||||
@embed_in_root = @embed_ids && (options[:include] || SETTINGS[:include])
|
||||
@embed_key = options[:embed_key] || :id
|
||||
@key = options[:key]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user