Open gutschi opened 6 months ago
I've tried various things and unfortunately haven't been able to reproduce this (though I did uncover a couple of unrelated Rails 7.1 issues in the process).
My gut feel is that this is something to do with Zeitwerk -- the Auth module is an implicit module/namespace that is (or at least should be) created by having the trestle-auth resources within the app/admin/auth
folder.
I assume that you have created a Devise AdminUser
model already (otherwise I'd expect to see "uninitialized constant AdminUser"). If you are still experiencing this issue, you could please also share your versions of Ruby and Zeitwerk, as well as if you have any customized autoloading configuration?
After installation of the gem when I run the generator it fails.
fails with
If I remove the
, scope: Auth
from the generated Trestle resourceadmin_users_admin.rb
everything seems to work. Not sure what theAuth
scope is supposed to do there though ...Rails and gem versions: