app/models/domain.rb
# expand our validations to include SOA details
expand our validations to include SOA details
expand our validations to include SOA details
def after_validation_on_create 
    soa = SOA.new( :domain => self )
    SOA_FIELDS.each do |f|
      soa.send( "#{f}=", send( f ) )
    end
    soa.serial = serial unless serial.nil? 
    unless soa.valid?
      soa.errors.each_full do |e|
        errors.add_to_base e
      end
    end
  end
def after_validation_on_create soa = SOA . new ( :domain => self ) SOA_FIELDS . each do | f | soa . send ( "#{f}=" , send ( f ) ) end soa . serial = serial unless serial . nil? unless soa . valid? soa . errors . each_full do | e | errors . add_to_base e end end end
expand our validations to include SOA details
expand our validations to include SOA details
#:nodoc: # Optional