mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Merge pull request #852 from mateomurphy/serializer-options-fix
Fix options merge order in `each_association`
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