0
我Mongoid來源看見沒有PROC可以被髮送到聯想法,什麼是實現低於AR協會與Mongoid最佳實踐:協會PROC爲mongoid
class Task
...
belongs_to :creator, ->{where(type: :manager)}, class_name: "User"
belongs_to :acceptor, ->{where(type: :acceptor)}, class_name: "User"
end