fixed NameError

This commit is contained in:
Georg G 2015-04-21 14:32:53 +02:00
parent 1495f67cb1
commit 066b3607f9
1 changed files with 1 additions and 1 deletions

View File

@ -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