Class: Cron::TrimSecureRequests
- Inherits:
-
TrimCollection
- Object
- TrimCollection
- Cron::TrimSecureRequests
- Defined in:
- app/jobs/cron/trim_secure_requests.rb
Overview
Trim Secure requests
Instance Method Summary collapse
-
#allowed_time ⇒ Object
abstract
Time.
-
#collection ⇒ Object
abstract
Mongoid::Collection.
Instance Method Details
#allowed_time ⇒ Object
This method is abstract.
Allowed time the amount of time allowed to exist before deleting
Returns Time.
16 17 18 |
# File 'app/jobs/cron/trim_secure_requests.rb', line 16 def allowed_time 7.days.ago end |
#collection ⇒ Object
This method is abstract.
Return the collection
Returns Mongoid::Collection.
10 11 12 |
# File 'app/jobs/cron/trim_secure_requests.rb', line 10 def collection SecureRequest.all end |