我有一个这样的命名空间模型:
class Message::Notification < Message
end
我这样定义一个实体:
class Message::Notification < Grape::Entity
expose :id
end
显示模型时出现错误:
present @notification, with: Entities::Message::Notification
错误:
app/models/message/notification.rb:1:in `':类通知的超类不匹配(TypeError)