mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Keyrelays index
This commit is contained in:
parent
f8ef86dcd5
commit
71df97f553
8 changed files with 58 additions and 4 deletions
|
@ -19,7 +19,7 @@ class Keyrelay < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def expiry
|
||||
if expiry_relative
|
||||
if expiry_relative.present?
|
||||
pa_date + ISO8601::Duration.new(expiry_relative).to_seconds
|
||||
elsif expiry_absolute
|
||||
expiry_absolute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue