mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix options merge order in each_association
Custom association serializers were getting clobbered when using an each serializer.
This commit is contained in:
@@ -187,7 +187,7 @@ module ActiveModel
|
||||
|
||||
serializer = serializer_class.new(
|
||||
association_value,
|
||||
serializer_from_options(association_options).merge(options)
|
||||
options.merge(serializer_from_options(association_options))
|
||||
) if serializer_class
|
||||
|
||||
if block_given?
|
||||
|
||||
Reference in New Issue
Block a user