app/models/job.rb
# this method should be called any time the job processing goes
# wrong; it will log the error and e-mail the user. Don't forget
# to return after calling this!
this method should be called any time the job processing goes
wrong; it will log the error and e-mail the user. Don't forget
to return after calling this!
this method should be called any time the job processing goes wrong ; it will log the error and e - mail the user . Don ' t forget to return after calling this!
def jobfail(log,msg)
    Rails.logger.error("#{log} #{self.id}")
    self.update_attributes(:status =>'error',:errormsg => msg)
    user = User.find_by_email(self.email)
    UserMailer.job_failed(user,self).deliver 
    UserMailer.admin_job_failed(self).deliver
  end
def jobfail ( log , msg ) Rails . logger . error ( "#{log} #{self.id}" ) self . update_attributes ( :status => 'error' , :errormsg => msg ) user = User . find_by_email ( self . email ) UserMailer . job_failed ( user , self ) . deliver UserMailer . admin_job_failed ( self ) . deliver end
this method should be called any time the job processing goes
wrong; it will log the error and e-mail the user.
this method should be called any time the job processing goes wrong ; it will log the error and e - mail the user .
log
<not_specific>
msg
<not_specific>