-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator not respecting abstract_class #581
Comments
On further inspection I think there's two issues here: the warning generated (which is just a warning so its not the reason the generator is failing) and the attempt to try and generate dashboards crashing with the error above. Here's the full backtrace to the first line of administrate code:
|
It seems like we solved this one elsewhere, so I'm going to close it. If that's not the case, please open another issue! |
In investigating #581, we released the `ApplicationRecord` change introduced in Rails 5 did not happen in our `example_app` models.
In investigating #581, we released the `ApplicationRecord` change introduced in Rails 5 did not happen in our `example_app` models.
I'm trying to set up Administrate with a new Rails 5 project, using the as yet unmerged compatibility branch.
The administrate:install generator fails with the error:
Its possible this isn't a Rails 5 compatibility issue but something that has surfaced due to Rails including ApplicationRecord, an abstract sub-class of ActiveRecord::Base, by default.
Also mentioned on #575
Not sure if this is related, but I also ended up with an empty "_dashboard.rb" file. After looking at the generator code I notice that if I run
Administrate::Namespace.new(:admin).resources
on the console it returns[:""]
.The text was updated successfully, but these errors were encountered: