0
私はsinatraサービスでmongo mapper(0.8.6)を使用しています。スタックレベルが深すぎるという問題が1つあります。問題は、私のモデルにキー "changes
"の競合があることです。ここに私のモデルである:MongoMapperのキー名と競合します
class ChangeLog
include MongoMapper::Document
belongs_to :resource
key :changes, Hash, :required => true
key :message, String, :required => true
key :note, String
key :user_uuid, String, :required => true
key :user_name, String, :required => true
timestamps!
end
しかし、私は、この場合のように、私のキーの名前を変更したくない、それは私のWebサービスのための正しい名前です。助言がありますか?