mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Merge pull request #949 from edwardloveall/el-870-fix
Don't pass serializer option to associated serializers
This commit is contained in:
@@ -220,7 +220,7 @@ module ActiveModel
|
||||
if serializer_class
|
||||
serializer = serializer_class.new(
|
||||
association_value,
|
||||
options.merge(serializer_from_options(association_options))
|
||||
options.except(:serializer).merge(serializer_from_options(association_options))
|
||||
)
|
||||
elsif !association_value.nil? && !association_value.instance_of?(Object)
|
||||
association_options[:association_options][:virtual_value] = association_value
|
||||
|
||||
Reference in New Issue
Block a user