mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
added some todos
This commit is contained in:
parent
f406c69963
commit
35155fb8ac
5 changed files with 19 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
class DomainNameValidator < ActiveModel::EachValidator
|
||||
#TODO
|
||||
# validates lenght of 2-63
|
||||
# validates/honours Estonian additional letters zäõüö
|
||||
# honours punicode and all interfces honors utf8
|
||||
# validates lower level domains (.pri.ee, edu.ee etc)
|
||||
# lower level domains are fixed for .ee and can add statically into settings
|
||||
|
||||
def validate_each(record, attribute, value)
|
||||
unless self.class.validate(value)
|
||||
record.errors[attribute] << (options[:message] || 'invalid format')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue