简体   繁体   中英

How to override concern in devise_token_auth

I use devise_token_auth gem. And I want override concern resource_finder.rb for modify method provider .

I had a similar issue, in which I wanted to override an method in concerns/user.rb I had already a user.rb in my models/ directory, I simply added a method with same name in my model/user.rb file and it worked

For you, you can create resource_finder.rb under models/ which will we override devise_token_auth concerns/resource_finder.rb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM