any_login
any_login copied to clipboard
Multiple models support
Overview
I thought it's useful if any_login supports multiple model. And I found some issues to request it.So I tried it in this PR. I changed many files, so if you don't like this support please close this PR😅
What I fixed
- Accept multiple model setting by
klass_names
- Display multiple login forms
- Pass class name by
params[:as]
- In controller, find model name by
params[:as]
and login.
Demo
https://user-images.githubusercontent.com/33926355/128660436-7e2ca55c-17fa-4e2e-aed6-498177ad5fac.mov