I use devise_token_auth
gem. And I want override concern resource_finder.rb
for modify method provider
.
Asked
Active
Viewed 499 times
1

Даниэль Сайфулин
- 379
- 2
- 13
-
Possible duplicate of [Overriding a concern of a gem - Rails](https://stackoverflow.com/questions/37237434/overriding-a-concern-of-a-gem-rails) – Anurag Aryan Apr 15 '18 at 19:38
1 Answers
0
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

Jon
- 9,156
- 9
- 56
- 73

ahmadelmorshedy
- 35
- 7