Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-03 15:09:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-03 15:09:49 +0300
commitd6533c44860930f866ae5abc967205e8eaf7e00c (patch)
tree1412675d5580fdb13c58ff1d7e3000e73bc791bd /app/models/concerns/throttled_touch.rb
parent119f0431e47b76f401dbb92d5774bf3380774038 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/concerns/throttled_touch.rb')
-rw-r--r--app/models/concerns/throttled_touch.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/concerns/throttled_touch.rb b/app/models/concerns/throttled_touch.rb
index 797c46f6cc5..b5682abb229 100644
--- a/app/models/concerns/throttled_touch.rb
+++ b/app/models/concerns/throttled_touch.rb
@@ -6,7 +6,7 @@ module ThrottledTouch
# The amount of time to wait before "touch" can update a record again.
TOUCH_INTERVAL = 1.minute
- def touch(*args)
+ def touch(*args, **kwargs)
super if (Time.zone.now - updated_at) > TOUCH_INTERVAL
end
end