更新时间:2023-10-18 10:37:58
我没有找到任何关于它的官方文档,但您仍然可以这样做:
I didn't find any official documentation about it, but here's how you could still do it:
tests = ::Test.all
它将返回来自父应用测试模型的所有测试.
It'll return all tests from the parent app Test model.
Rails 3 引擎可以从其父应用程序访问模型吗?