I have an existing Rails app that has Devise / Pundit running on the User model.
I have followed:
How to get Active Admin to work with Pundit after login
https://gist.github.com/tomchentw/8579571
I don't need authorization right now - Devise for authentication will do. Can I just "turn off"
Pundit for Active Admin?
UPDATE
This is super monkey patch:
after_action :verify_policy_scoped, only: [:index] if controller_path.split('/').first == "admin"
It works but I don't think it's ideal.
In your config/initializers/active_admin.rb
You can try to set up authorization adapter
Setting up your own AuthorizationAdapter is easy! The following example shows how to set up and tie your authorization adapter class to Active Admin:
then
and other you can define the namespace toggle
Then like this to