Reduced count of latest karma changes.
This commit is contained in:
parent
f807b03e74
commit
0da7a322f9
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Karma::ActivityLog < ApplicationModel
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.latest(user, limit = 20)
|
def self.latest(user, limit = 12)
|
||||||
result = []
|
result = []
|
||||||
logs = Karma::ActivityLog.where(user_id: user.id).order(id: :desc).limit(limit)
|
logs = Karma::ActivityLog.where(user_id: user.id).order(id: :desc).limit(limit)
|
||||||
logs.each { |log|
|
logs.each { |log|
|
||||||
|
|
Loading…
Reference in a new issue