From 066b3607f9c9912a8055693a814fb31113af86f0 Mon Sep 17 00:00:00 2001 From: Georg G Date: Tue, 21 Apr 2015 14:32:53 +0200 Subject: [PATCH] fixed NameError --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index e5da0c93..fba3b892 100644 --- a/Rakefile +++ b/Rakefile @@ -207,7 +207,7 @@ namespace :justask do subscribed = 0 Answer.all.each do |a| - if not s.user.nil? and not s.answer.nil? + if not a.user.nil? Subscription.subscribe a.user, a subscribed += 1 end