nathanaschbacher / nodiak

Nodiak is a Node.js client for the Riak Distributed Database
MIT License
43 stars 16 forks source link

Change the way RObject.save works, so it uses the Bucket's object.save method. #6

Closed nathanaschbacher closed 12 years ago

nathanaschbacher commented 12 years ago

Currently RObject contains the complexity of using the underlying client to save itself to Riak. The Bucket then simply calls RObject.save in it's own object.save method.

This scenario should be reversed, so that the base client complexity is in Bucket and the RObject.save calls its Bucket's object.save method.