weixin_39921689
2021-01-08 06:51Make DeviseAuthToken inherits my API base Controller?
- Version: v0.1.42
Hi, I was wondering if there is way to make this Gem inherits from my API base controller instead of Application::Base?
My API base controller shares common methods (JSON errors handling, validations, concerns, includes, etc.) and I want DeviseAuthToken to follow the same rules BEFORE everything else, before running code of Application::Base or same.
I want to apply DRY principle.
Thanks :)
该提问来源于开源项目:lynndylanhurley/devise_token_auth
- 点赞
- 回答
- 收藏
- 复制链接分享
5条回答
为你推荐
- 怎么画这个,纠结了一个星期了,求大神解答,最好有代码
- c#
- visual studio
- asp.net
- 2个回答
- 是否有必要在此类中使用静态方法和属性? [关闭]
- oop
- codeigniter
- php
- 2个回答
- PHP继承:如何从父级引用子对象?
- inheritance
- php
- 2个回答
- 使用皮肤创建网站 - 从我的视角提供正确图像的最佳方式是什么?
- image
- dynamic
- php
- skinning
- readfile
- 4个回答
- Symfony 3 - 注意:unserialize():偏移量为11个字节的错误
- symfony
- php
- 1个回答
换一换