Browse Source

oops

pull/1/head
Claudius Nicolae 12 years ago
parent
commit
e2acfe8d48
  1. 6
      app/models/cname.rb

6
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

Loading…
Cancel
Save