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