Permalink
Browse files

fix Syntax error with ruby 1.8.7: lib/dj_mon/backend/activerecord.rb

  • Loading branch information...
1 parent d822ca1 commit 0b6e2469b745c1b9cdd14abb948b0b7fe3e510c6 @wanglian wanglian committed Sep 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dj_mon/backend/activerecord.rb
View
2 lib/dj_mon/backend/activerecord.rb
@@ -25,7 +25,7 @@ def destroy id
def retry id
dj = Delayed::Job.find(id)
- dj.update_attributes({ failed_at: nil }) if dj
+ dj.update_attribute :failed_at, nil if dj
end
end
end

0 comments on commit 0b6e246

Please sign in to comment.