Class: Cron::TrimSecureRequests

Inherits:
TrimCollection
  • Object
show all
Defined in:
app/jobs/cron/trim_secure_requests.rb

Overview

Trim Secure requests

Instance Method Summary collapse

Instance Method Details

#allowed_timeObject

This method is abstract.

Allowed time the amount of time allowed to exist before deleting

Returns Time.

Returns:

  • Time



16
17
18
# File 'app/jobs/cron/trim_secure_requests.rb', line 16

def allowed_time
  7.days.ago
end

#collectionObject

This method is abstract.

Return the collection

Returns Mongoid::Collection.

Returns:

  • Mongoid::Collection



10
11
12
# File 'app/jobs/cron/trim_secure_requests.rb', line 10

def collection
  SecureRequest.all
end