seancribbs/ripple — Issue #227: Document reload() method doesn't understand "multipart/mixed"
Author: dreverri
Created: 2011-10-18 18:04:42+00:00
State: open

When using allow_mult=true documents may come back with a content type of "multipart/mixed". Ripple's find() method handles "multipart/mixed" as expected. The reload() method, however, does not.

Example:

```ruby
require 'rubygems'
require 'ripple'

class Collection
include Ripple::Document

property :items, Array, :default => []

on_conflict do |siblings|
# set-union siblings
self.items = siblings.map(&:items).flatten.uniq
end
end

Collection.bucket.allow_mult = true
collection = Collection.create!
collection1 = Collection.find(collection.key)
collection2 = Collection.find(collection.key)
collection1.items << 1
collection1.save!
collection2.items << 2
collection2.save!

puts ([1,2] == collection.reload.items.sort ? "pass" : "fail")
```

Expected:
pass

Actual:

```bash
lib/riak/serializers.rb:26:in `block in serializer_for': No serializer has been registered for content type "multipart/mixed; boundary=IAIB4qqIBdpJAB8QJE41NLgVV7g" (NotImplementedError)
```