mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Validate keyrelay relative and absolute in controller
This commit is contained in:
parent
51978ef38a
commit
938bd75dfa
5 changed files with 28 additions and 4 deletions
|
@ -19,6 +19,7 @@ class Keyrelay < ActiveRecord::Base
|
|||
[:expiry_relative, :unknown_pattern, { value: { obj: 'relative', val: expiry_relative } }]
|
||||
],
|
||||
'2003' => [
|
||||
# TODO: Remove only_one_parameter_allowed and other params that are validated in controller?
|
||||
[:base, :only_one_parameter_allowed, { param_1: 'relative', param_2: 'absolute' }],
|
||||
[:key_data_public_key, :blank],
|
||||
[:key_data_flags, :blank],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue