diff --git a/app/models/cname.rb b/app/models/cname.rb index bba090b..0acf99d 100644 --- a/app/models/cname.rb +++ b/app/models/cname.rb @@ -8,10 +8,8 @@ # Obtained from http://www.zytrax.com/books/dns/ch8/cname.html # class CNAME < Record - validates :name, - :length => { :maximum => 1024 }, - :hostname2 => { :allow_underscore => true, :allow_wildcard_hostname => true } - validates :content, :presence => true, :hostname => true + validates :name, :hostname => {:allow_underscore => true, :allow_wildcard_hostname => true} + validates :content, :presence => true, :length => { :maximum => 1024 }, :hostname2 => true end