Open collimarco opened 6 months ago
This might help https://github.com/rails/rails/issues/51772.
@smitssjors Thanks for the help! I already moved to Devise also for admins... so I have solved in some way.
I was just curious about why that error for credentials is raised only when I set that controller as the base controller for mission control. When I normally use that controller, without mission control, the docker image compiled normally without errors.
Start with an application that is working fine and a docker image that is building successfully.
The application already has a
Admin::AdminController
that looks like this:Then add this gem and add this line to an initializer:
Or, alternatively, add this line to
config/application.rb
:Once you add that line of configuration, you start getting this error when you try to build the Docker image:
Is that configuration of mission_control causing an eager loading of controller file or something? Or it's causing the controller file to be loaded before credentials are fully loaded?
Any solution?