[英]Ruby On Rails - override rendering methods in devise_token_auth
[英]How to override concern in devise_token_auth
我使用devise_token_auth
gem。 而且我想覆蓋對resource_finder.rb
的關注,以修改方法provider
。
我有一個類似的問題,我想在我的models/
目錄中已經有一個user.rb
在overrides concerns/user.rb
覆蓋一個方法,我只是在model/user.rb
文件中添加了一個同名的方法,有效
對於您來說,您可以在models/
下創建resource_finder.rb
,我們將覆蓋devise_token_auth
concerns/resource_finder.rb
devise_token_auth
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.