How can I user current_user and cookies in a class thats written in a controllers's module?

前端 未结 0 880
太阳男子
太阳男子 2020-12-02 11:33
module DummyModule
  extend ActiveSupport::Concern
  included do
    class DummyClass
      #I would like to use current_user and cookies here without initialising t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题