class ActiveModel::Serializer::Association::HasMany

def options

def options
  if use_array_serializer?
    { each_serializer: serializer_from_options }.merge! super
  else
    super
  end
end