|
|
@ -21,7 +21,7 @@ class SOA < Record |
|
|
|
after_initialize :disassemble_content |
|
|
|
after_initialize :disassemble_content |
|
|
|
|
|
|
|
|
|
|
|
before_validation do |
|
|
|
before_validation do |
|
|
|
self.primary_ns ||= domain.ns_records.first.content |
|
|
|
self.primary_ns ||= domain.ns_records.first.try(:content) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# This allows us to have these convenience attributes act like any other |
|
|
|
# This allows us to have these convenience attributes act like any other |
|
|
|