mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
fixed dnskey invalid alg response
This commit is contained in:
parent
2bdb235610
commit
d79d1fbeb1
2 changed files with 32 additions and 1 deletions
|
@ -60,7 +60,7 @@ class Dnskey < ApplicationRecord
|
|||
def validate_algorithm
|
||||
return if alg.blank?
|
||||
return if ALGORITHMS.include?(alg.to_s)
|
||||
errors.add(:alg, :invalid, values: "Valid algorithms are: #{ALGORITHMS.join(', ')}")
|
||||
errors.add(:alg, :invalid, values: "#{ALGORITHMS.join(', ')}")
|
||||
end
|
||||
|
||||
def validate_protocol
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue