diff options
Diffstat (limited to 'app/models/concerns/throttled_touch.rb')
-rw-r--r-- | app/models/concerns/throttled_touch.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/concerns/throttled_touch.rb b/app/models/concerns/throttled_touch.rb deleted file mode 100644 index ad0ff0f20d4..00000000000 --- a/app/models/concerns/throttled_touch.rb +++ /dev/null @@ -1,10 +0,0 @@ -# ThrottledTouch can be used to throttle the number of updates triggered by -# calling "touch" on an ActiveRecord model. -module ThrottledTouch - # The amount of time to wait before "touch" can update a record again. - TOUCH_INTERVAL = 1.minute - - def touch(*args) - super if (Time.zone.now - updated_at) > TOUCH_INTERVAL - end -end |