debian-mirror-gitlab/spec/support/helpers/user_activities_helpers.rb
2018-10-15 14:42:47 +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