diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-03 15:09:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-03 15:09:49 +0300 |
commit | d6533c44860930f866ae5abc967205e8eaf7e00c (patch) | |
tree | 1412675d5580fdb13c58ff1d7e3000e73bc791bd /app/models/concerns/throttled_touch.rb | |
parent | 119f0431e47b76f401dbb92d5774bf3380774038 (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.rb | 2 |
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 |