mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Associations doesn't depend on source serializer anymore
This commit is contained in:
@@ -392,6 +392,10 @@ module ActiveModel
|
||||
Associations::HasOne
|
||||
end
|
||||
|
||||
options[:value] ||= send(name)
|
||||
options[:embed] = _embed unless options.key?(:embed)
|
||||
options[:include] = _root_embed unless options.key?(:include)
|
||||
options[:serializer_options] = self.options
|
||||
association = association_class.new(name, self, options)
|
||||
|
||||
if association.embed_ids?
|
||||
|
||||
Reference in New Issue
Block a user