Refactor EPP Errors once again

This commit is contained in:
Martin Lensment 2014-10-09 17:56:07 +03:00
parent 6ab58767c3
commit a740ed34f3
7 changed files with 74 additions and 32 deletions

View file

@ -9,6 +9,8 @@ class Dnskey < ActiveRecord::Base
validate :validate_protocol
validate :validate_flags
# after_validation :generate_epp_errors
ALGORITHMS = %w(3 5 6 7 8 252 253 254 255)
PROTOCOLS = %w(3)
FLAGS = %w(0 256 257)