mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Remove redundant file
This commit is contained in:
parent
f87c8839be
commit
e3c60d51fe
1 changed files with 0 additions and 13 deletions
|
@ -1,13 +0,0 @@
|
|||
class DomainReservationValidator < ActiveModel::EachValidator
|
||||
def validate_each(record, attribute, value)
|
||||
unless self.class.validate(value)
|
||||
record.errors[attribute] << (options[:message] || 'Domain name is reserved or restricted')
|
||||
end
|
||||
end
|
||||
|
||||
class << self
|
||||
def validate(value)
|
||||
!ReservedDomain.exists?(name: value.mb_chars.downcase.strip)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue