any_login icon indicating copy to clipboard operation
any_login copied to clipboard

Multiple models support

Open kenzo-tanaka opened this issue 2 years ago • 0 comments

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

kenzo-tanaka avatar Aug 09 '21 07:08 kenzo-tanaka