Permalink
Browse files

Fixed SQL syntax issue

  • Loading branch information...
1 parent 7fcdae2 commit af7af415d1f75c6420a0b1827a6f8a88e9512cdc @anlek anlek committed with Feb 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navvy/job/active_record.rb
@@ -217,7 +217,7 @@ def failed(message = nil)
def times_failed
i = parent_id || id
self.class.count(
- :conditions => "(`id` == '#{i}' OR `parent_id` == '#{i}') AND `failed_at` IS NOT NULL"
+ :conditions => "(`id` = '#{i}' OR `parent_id` = '#{i}') AND `failed_at` IS NOT NULL"
)
end
end

0 comments on commit af7af41

Please sign in to comment.