Merging ActiveAdmin users with existing user model

后端 未结 2 620
时光说笑
时光说笑 2021-02-14 17:09

I\'ve set up ActiveAdmin early in my project and used the default admin_users model for authentication. I\'ve since used Devise to set up a separate User model and

2条回答
  •  一生所求
    2021-02-14 17:21

    ActiveAdmin let's you define your own authentication methods. You can migrate your user tables to have an additional admin column and mark the existing admins as such in it, then set your authentication methods (as specified) in config/initializers/active_admin.rb.

提交回复
热议问题