Add records that indicate a user's avatar has been checked

This commit is contained in:
Robin Ward
2013-09-12 14:58:20 -04:00
parent 4599e5d732
commit 3fcd331d43
3 changed files with 17 additions and 2 deletions
+4
View File
@@ -17,6 +17,10 @@ module Jobs
if user_stats.present?
user_stats.each do |us|
us.update_column(:has_custom_avatar, true) if AvatarDetector.new(us.user).has_custom_avatar?
UserHistory.create!(
action: UserHistory.actions[:checked_for_custom_avatar],
target_user_id: us.user_id
)
end
end
end