debian-mirror-gitlab/spec/support/user_activities_helpers.rb
2017-09-10 17:25:29 +05:30

7 lines
152 B
Ruby

module UserActivitiesHelpers
def user_activity(user)
Gitlab::UserActivities.new
.find { |k, _| k == user.id.to_s }&.
second
end
end