Remove redundant file

This commit is contained in:
Martin Lensment 2014-07-30 12:14:20 +03:00
parent f87c8839be
commit e3c60d51fe

View file

@ -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