0
MongoDB 및 MongoMapper와 함께 Rails를 사용하고 있습니다. 내 문제는 다른 클래스를 상속 한 클래스가 있고 키 중 하나를 제외하고 싶습니다. 예 :MongoMapper에서 상속 방지
class A
include MongoMapper::EmbeddedDocument
many :items
#Other keys I want
end
class Item < A
include MongoMapper::EmbeddedDocument
#Included Keys from A
#Other Keys that I want
end
여기서 문제는 item이 many : items 중 하나의 관계를 상속한다는 것입니다. 어떻게 방지 할 수 있습니까?