mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Use a third argument to pass serializer_options
This commit is contained in:
@@ -380,8 +380,7 @@ module ActiveModel
|
||||
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, options)
|
||||
association = association_class.new(name, options, self.options)
|
||||
|
||||
if association.embed_ids?
|
||||
node[association.key] =
|
||||
|
||||
Reference in New Issue
Block a user