【发布时间】:2013-04-09 15:53:19
【问题描述】:
我想通过涟漪https://github.com/basho/ripple 将数据保存到riak,并创建一个模型:
class Person
include Ripple::Document
property :name, String
many :friends, :class_name => "Person"
end
如果有两个人模型实例,如何知道一个人是否是另一个人的朋友?喜欢:
person.friends.get(somekey)
【问题讨论】: