You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had a similar problem when trying to set config.parent_controller = '::ApplicationController' to keep the old behaviour.
Could fix it by moving the config.parent_controller setting above my config.audit_with call. Try moving it to the very beginning of the config block. I guess some config calls instantiate the controller so that the setting later takes no effect anymore.
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.
The text was updated successfully, but these errors were encountered: