activeadmin / activeadmin/inherited_resources

Unable to autoload constant Base

未关闭
#472 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
2.7k
派生
380
平均合并
14 分钟
30 天内合并 PR
2

描述

This issue was originally reported at https://github.com/activeadmin/activeadmin/issues/2908

Current workarounds (from the engine) are:

- Rename `Base` classes
- Add an empty `Base` class

```
class Base
end

module MyCustomEngine
class Engine < ::Rails::Engine
```

I guess it could be fixed rescuing `NameError, LoadError` at method `initialize_resources_class_accessors!` from `inherited_resources/lib/inherited_resources/class_methods.rb` (as done at https://github.com/activeadmin/inherited_resources/pull/416)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。