weixin_39921689
weixin_39921689
2021-01-08 06:51

Make 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条回答