次のような名前空間モデルが 1 つあります。
class Message::Notification < Message
end
そして、次のように 1 つのエンティティを定義します。
class Message::Notification < Grape::Entity
expose :id
end
モデルを提示するとエラーが発生します:
present @notification, with: Entities::Message::Notification
エラー:
app/models/message/notification.rb:1:in `': クラス通知のスーパークラスの不一致 (TypeError)