# File lib/couchrest/model/proxyable.rb, line 140 def proxy_update(doc) if doc && doc.is_a?(model) doc.database = @database doc.model_proxy = self doc.send("#{owner_name}=", owner) end doc end