debian-mirror-gitlab/spec/support/user_activities_helpers.rb
2017-08-17 22:00:37 +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