Merge pull request #852 from mateomurphy/serializer-options-fix

Fix options merge order in `each_association`
This commit is contained in:
Guillermo Iguaran
2015-03-22 18:54:07 -05:00
2 changed files with 33 additions and 1 deletions

View File

@@ -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?