2016-11-25 11:10:25 -05:00
|
|
|
module UserActivitiesHelpers
|
2017-03-07 13:34:43 -05:00
|
|
|
def user_activity(user)
|
2017-06-21 09:48:12 -04:00
|
|
|
Gitlab::UserActivities.new
|
|
|
|
.find { |k, _| k == user.id.to_s }&.
|
2017-03-07 13:34:43 -05:00
|
|
|
second
|
2016-11-25 11:10:25 -05:00
|
|
|
end
|
|
|
|
end
|