Use a third argument to pass serializer_options

This commit is contained in:
Santiago Pastorino
2013-05-14 17:03:59 -07:00
parent c04d452823
commit e273a2fb37
2 changed files with 6 additions and 6 deletions

View File

@@ -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] =