mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 15:14:47 +02:00
Add default timeout value & task test
This commit is contained in:
parent
16db7358cd
commit
517b4b2fe2
2 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,7 @@ class EppSession < ApplicationRecord
|
|||
validates :session_id, uniqueness: true, presence: true
|
||||
|
||||
class_attribute :timeout
|
||||
self.timeout = ENV['epp_session_timeout_seconds'].to_i.seconds
|
||||
self.timeout = (ENV['epp_session_timeout_seconds'] || 300).to_i.seconds
|
||||
|
||||
alias_attribute :last_access, :updated_at
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue