[英]Devise Masquerade with multiple devise models
I have an admin devise model and a user devise model.我有一个管理员 devise model 和一个用户 devise Z20F35E630DAF44DBFA4C3F68FZ59。 I am trying to use devise_masquerade gem to login as users to help with support but can't seem to get it working between the two devise models.我正在尝试使用 devise_masquerade gem 以用户身份登录以提供支持,但似乎无法在两个 devise 模型之间工作。 Has anybody had any experience with this?有没有人有这方面的经验?
Thanks in advance提前致谢
Probably it could be helpful to use this issue link from devise_masquerade:使用 devise_masquerade 中的问题链接可能会有所帮助:
https://github.com/oivoodoo/devise_masquerade/issues/50 https://github.com/oivoodoo/devise_masquerade/issues/50
config.masquerading_resource_class=Admin
config.masqueraded_resource_class=User
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.