eth*_*han 5 ruby ruby-on-rails delayed-job devise
我想将rails插件设计 'reset_password_instructions设置为delayed_job ..但我尝试了很多方法并且失败了.
我找到了一个函数password_controller#creat:
self.resource = resource_class.send_reset_password_instructions(params[resource_name])
Run Code Online (Sandbox Code Playgroud)
我认为用于发送电子邮件重置密码的句子.
我想改变它:
self.resource = Delayed::Job.enqueue ApplicationController::MailingJob.new(:resource_class.send_reset_password_instructions, params[resource_name])
Run Code Online (Sandbox Code Playgroud)
好的,它会返回语法错误...
帮助我..我不知道如何解决它.. thx.