I want to install the rails devise 'reset_password_instructions plugin on delayed_job .. but I tried many ways and failed.
I found the password_controller # creat function:
self.resource = resource_class.send_reset_password_instructions(params[resource_name])
I think the sentence used to send email to password reset.
I want to change it as:
self.resource = Delayed::Job.enqueue ApplicationController::MailingJob.new(:resource_class.send_reset_password_instructions, params[resource_name])
OK, it will return a syntax error ...
Help me .. I donβt know how to solve it .. thanks.
ethan source
share