From 5ddece709dca985340c32fb374abe5e6cc5d887b Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Mon, 8 Jul 2013 18:13:19 +0200 Subject: [PATCH] Pass problem when you UpdateProblemCache by rake task --- lib/tasks/errbit/database.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/errbit/database.rake b/lib/tasks/errbit/database.rake index e23d84d..60a4133 100644 --- a/lib/tasks/errbit/database.rake +++ b/lib/tasks/errbit/database.rake @@ -7,7 +7,7 @@ namespace :errbit do task :update_problem_attrs => :environment do puts "Updating problems" Problem.all.each{|problem| - ProblemUpdaterCache.new(self).update + ProblemUpdaterCache.new(problem).update } end -- libgit2 0.21.2