Skip to content

Commit

Permalink
Bugfix: No update_attribute in mongo_mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
zbelzer committed Mar 9, 2010
1 parent 5b49817 commit 32ead61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/worker.rb
Expand Up @@ -126,7 +126,7 @@ def reschedule(job, time = nil)
job.save!
else
say "* [JOB] PERMANENTLY removing #{job.name} because of #{job.attempts} consecutive failures.", Logger::INFO
self.class.destroy_failed_jobs ? job.destroy : job.update_attribute(:failed_at, Delayed::Job.db_time_now)
self.class.destroy_failed_jobs ? job.destroy : job.update_attributes(:failed_at => Delayed::Job.db_time_now)
end
end

Expand Down

0 comments on commit 32ead61

Please sign in to comment.