mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
Added some missing model specs + PaperTrail session fix
This commit is contained in:
parent
c248a957a6
commit
a637eb5e01
39 changed files with 1447 additions and 845 deletions
|
@ -5,14 +5,15 @@ class Keyrelay < ActiveRecord::Base
|
|||
belongs_to :domain
|
||||
|
||||
belongs_to :requester, class_name: 'Registrar'
|
||||
belongs_to :accepter, class_name: 'Registrar'
|
||||
belongs_to :accepter, class_name: 'Registrar'
|
||||
|
||||
has_many :legal_documents, as: :documentable
|
||||
|
||||
delegate :name, to: :domain, prefix: true
|
||||
|
||||
validates :domain, :key_data_public_key, :key_data_flags, :key_data_protocol,
|
||||
:key_data_alg, :auth_info_pw, presence: true
|
||||
validates :expiry_relative, duration_iso8601: true
|
||||
validates :key_data_public_key, :key_data_flags, :key_data_protocol, :key_data_alg, :auth_info_pw, presence: true
|
||||
|
||||
validate :validate_expiry_relative_xor_expiry_absolute
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue