Devise with Omniauth for multiple models without STI

前端 未结 4 2010
情深已故
情深已故 2021-01-17 21:06

Is there any way to configure Devise Omniauth for multiple models without STI?

We have the models Students and Professors and we didn\'t want to use STI but now we r

4条回答
  •  臣服心动
    2021-01-17 21:38

    Currently, Devise's Omniauthable module does not work with multiple models. No need to worry though, as the Omniauthable module is but a simple wrapper around OmniAuth.

    https://github.com/plataformatec/devise/wiki/OmniAuth-with-multiple-models

提交回复
热议问题