summaryrefslogtreecommitdiff
path: root/app/models/concerns/throttled_touch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/throttled_touch.rb')
-rw-r--r--app/models/concerns/throttled_touch.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/concerns/throttled_touch.rb b/app/models/concerns/throttled_touch.rb
index ffd675de6b2..797c46f6cc5 100644
--- a/app/models/concerns/throttled_touch.rb
+++ b/app/models/concerns/throttled_touch.rb
@@ -6,8 +6,7 @@ module ThrottledTouch
# The amount of time to wait before "touch" can update a record again.
TOUCH_INTERVAL = 1.minute
- def touch(*args, **kwargs)
- force = kwargs.delete(:force)
- super if force || (Time.zone.now - updated_at) > TOUCH_INTERVAL
+ def touch(*args)
+ super if (Time.zone.now - updated_at) > TOUCH_INTERVAL
end
end