cfe19b795e
This new class uses a Redis Hash instead of a Sorted Set. Signed-off-by: Rémy Coutable <remy@rymai.me>
7 lines
152 B
Ruby
7 lines
152 B
Ruby
module UserActivitiesHelpers
|
|
def user_activity(user)
|
|
Gitlab::UserActivities.new.
|
|
find { |k, _| k == user.id.to_s }&.
|
|
second
|
|
end
|
|
end
|