app/models/domain.rb
# Setup an SOA if we have the requirements
Setup an SOA if we have the requirements
Setup an SOA if we have the requirements
def create_soa_record 
    return if self.slave?
    soa = SOA.new( :domain => self )
    SOA_FIELDS.each do |f|
      soa.send( "#{f}=", send( f ) )
    end
    soa.serial = serial unless serial.nil? 
    soa.save
  end
def create_soa_record return if self . slave? soa = SOA . new ( :domain => self ) SOA_FIELDS . each do | f | soa . send ( "#{f}=" , send ( f ) ) end soa . serial = serial unless serial . nil? soa . save end
Setup an SOA if we have the requirements
Setup an SOA if we have the requirements
#:nodoc: # Optional