activeadmin / activeadmin/inherited_resources

Unable to autoload constant Base

Đang mở
#472 3 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Ruby
Star
2.7k
Fork
380
Merge trung bình
14 phút
Pull request đã merge (30 ngày)
2

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.