From 0da7a322f9d37e9a597b06733087737280d35a50 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 14 Jul 2016 19:24:56 +0200 Subject: [PATCH] Reduced count of latest karma changes. --- app/models/karma/activity_log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/karma/activity_log.rb b/app/models/karma/activity_log.rb index c01b17211..9b1d2759d 100644 --- a/app/models/karma/activity_log.rb +++ b/app/models/karma/activity_log.rb @@ -47,7 +47,7 @@ class Karma::ActivityLog < ApplicationModel true end - def self.latest(user, limit = 20) + def self.latest(user, limit = 12) result = [] logs = Karma::ActivityLog.where(user_id: user.id).order(id: :desc).limit(limit) logs.each { |log|