0
私はMongoDBとMongoMapperでRailsを使用しています。私の問題は、別のクラスを継承しているクラスがあり、キーの1つを残したいということです。たとえば、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
ここで問題となるのは、多くのアイテムのAからの関係を継承するという問題です。どうすればそれを防ぐことができますか?