# File 'lib/debci/test/expired.rb', line 4
def expired?
return false unless self.date
days = Debci.config.data_retention_days.to_i
if days > 0
retention_window = days * (24 * 60 * 60)
Time.now > self.date + retention_window.seconds
else
false
end
end
|