Handling more than one admin types login with ActiveAdmin

后端 未结 1 1179
野性不改
野性不改 2021-01-05 16:39

I have an application requiring three User types(User, Agent, Admin) with login and requiring different devise modules.

                        User    Agent         


        
相关标签:
1条回答
  • 2021-01-05 17:30
    devise_for :agent_admins, ActiveAdmin::Devise.config.merge({path: '/agent'})
    devise_for :admin_users, ActiveAdmin::Devise.config
    ActiveAdmin.routes(self)
    

    This solved the issue.

    0 讨论(0)
提交回复
热议问题