How to access URL helper from rails module

前端 未结 5 960
感情败类
感情败类 2020-12-25 10:42

I have a module with a function. It resides in /lib/contact.rb:

module Contact
  class << self
    def run(current_user)
      ...
    end
  end
end
         


        
5条回答
提交回复
热议问题