model name is diffrent of table name an error
还没有人认领这个 Issue。
评估
调研方向
Start with the present :data, TxhimsPatientInfo.all, :with => TxhimsPatientInfoEntity call and the TxhimsPatientInfoEntity definition shown in the issue. Reproduce the reported ArgumentError in the project context, then inspect the surrounding V1::ExamineReportsAPI loading and removal behavior. Done means identifying a reproducible cause and documenting or testing the supported model/entity usage.
由索引模型根据 Issue 内容生成。
描述
hi my project model name is TxhimsPatientInfo ,but my databse table name is patient_infos
class TxhimsPatientInfo < TxhimsModel
self.table_name = "patient_infos"
end
entity name is TxhimsPatientInfoEntity
class TxhimsPatientInfoEntity < Grape::Entity
expose :id, :patient_name
expose :body_description
end
I m used the bottom code has a misstake error ArgumentError (A copy of V1::ExamineReportsAPI has been removed from the module tree but is still active!):
present :data, TxhimsPatientInfo.all, :with => TxhimsPatientInfoEntity
- 主要语言
- Ruby
- 星标
- 730
- 派生
- 154
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby-grape/grape-entity 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
ruby-grape/grape-entity#386 · 7 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
ruby-grape/grape-entity#382 ·
-
难度 4/5 3-5 天 新手友好度 35/100
ruby-grape/grape-entity#380 ·
-
难度 3/5 1-2 天 新手友好度 35/100
ruby-grape/grape-entity#373 · 2 条评论 ·
-
难度 1/5 1-3 小时 新手友好度 45/100
ruby-grape/grape-entity#372 ·
查看 ruby-grape/grape-entity 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 72/100
Homebrew/homebrew-cask#295450 ·
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 72/100
TheOdinProject/curriculum#31479 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
taskcluster/taskcluster#9284 · 1 条评论 ·
维护者通常 1 天内回复
-
Class option relations are appended to the command on every run可能已有人在做 @auraseb 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100