Skip to content

Commit 54b1a99

Browse files
committed
Fix failure counts when a class is given
This previously always assigned the class name to nil and therefore gave inaccurate counts when a class was specified. Now it doesn't!
1 parent da89aa9 commit 54b1a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resque/failure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def self.queues
6464

6565
# Returns the int count of how many failures we have seen.
6666
def self.count(queue = nil, class_name = nil)
67-
backend.count(queue, class_name = nil)
67+
backend.count(queue, class_name)
6868
end
6969

7070
# Returns an array of all the failures, paginated.

0 commit comments

Comments
 (0)