On my project the config/initializers/rails_admin.rb file added
config.parent_controller = '::MyBaseController'
And rails admin ignores it, if i change directly the lib/rails_admin/config.rb file and hardcode this
@parent_controller = '::MyBaseController
It works, my conclusion is that this mechanism
class ApplicationController < Config.parent_controller.constantize
Doesnt work.
I tested it using a before_action filter and i could confirm that doing
Does not return the right class when using the config approach.
On my project the config/initializers/rails_admin.rb file added
And rails admin ignores it, if i change directly the lib/rails_admin/config.rb file and hardcode this
It works, my conclusion is that this mechanism
Doesnt work.
I tested it using a before_action filter and i could confirm that doing
Does not return the right class when using the config approach.