|
|
|
@ -23,8 +23,6 @@ class SoasController < ApplicationController
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def after_update_save(record) |
|
|
|
|
unless @record.domain.ns_records.any? {|ns_record| @record.primary_ns == ns_record.content} |
|
|
|
|
flash.now[:warning] = "SOA record's primary NS is no longer among this domain's NS records" |
|
|
|
|
end |
|
|
|
|
flash.now[:warning] = "SOA record's primary NS is no longer among this domain's NS records" unless record.ns? |
|
|
|
|
end |
|
|
|
|
end |