lib/resque/failure/mongo.rb in resque-igo-1.1.3 vs lib/resque/failure/mongo.rb in resque-igo-1.1.4
- old
+ new
@@ -19,10 +19,9 @@
def self.count
Resque.mongo_failures.count
end
def self.all(start = 0, count = 1)
-
all_failures = Resque.mongo_failures.find().skip(start.to_i).limit(count.to_i).to_a
all_failures.size == 1 ? all_failures.first : all_failures
end
def self.clear