From 63be00f70fa9d2926a28de4ec6123219c6bbde2b Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 30 Nov 2014 14:56:06 +0100 Subject: [PATCH] justask:recount now recounts the friend/follower_count --- Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rakefile b/Rakefile index 7e6c3f34..1afced0b 100644 --- a/Rakefile +++ b/Rakefile @@ -15,6 +15,8 @@ namespace :justask do answered = Answer.where(user: user).count asked = Question.where(user: user).where(author_is_anonymous: false).count commented = Comment.where(user: user).count + user.friend_count = user.friends.count + user.follower_count = user.followers.count user.answered_count = answered user.asked_count = asked user.commented_count = commented