parent
9829d9b28a
commit
534d66f904
4 changed files with 8 additions and 2 deletions
|
@ -54,7 +54,7 @@ class CustomFilter < ApplicationRecord
|
|||
return @expires_in if defined?(@expires_in)
|
||||
return nil if expires_at.nil?
|
||||
|
||||
[30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week].find { |expires_in| expires_in.from_now >= expires_at }
|
||||
[30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week, 2.weeks, 1.month, 3.months].find { |expires_in| expires_in.from_now >= expires_at }
|
||||
end
|
||||
|
||||
def irreversible=(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue