Closed weiser closed 11 years ago
After thinking about it overnight, I think a better way of achieving my goal would be to subclass the document model and modify the bucket_name of the subclass.
Yes. I think that sounds like the right approach.
Also, IIRC, bucket_name can also be implemented as a method in your class as well if that also helps.
Summary
There are times when I would like to save multiple versions of a Ripple Document. Ideally, I would like each version of the document to be in its own bucket.
E.g. if I have the following class definition:
and I would like to create two A objects, but save them in different buckets:
I would also like the ability to load documents from buckets dynamically:
Is there a way to do this currently, or should I add a PR?
Settings
git://github.com/basho/ripple.git@ rev: f866ddd5e2b0a11bb11bd29683f4f41f5c1bca22