app/models/record.rb
# Append the domain name to the +name+ field if missing
Append the domain name to the +name+ field if missing
Append the domain name to the + name + field if missing
def append_domain_name!
    self[:name] = self.domain.name if self[:name].blank?
    self[:name] << ".#{self.domain.name}" unless self[:name].index( self.domain.name )
  end
def append_domain_name! self [ :name ] = self . domain . name if self [ :name ] . blank? self [ :name ] << ".#{self.domain.name}" unless self [ :name ] . index ( self . domain . name ) end
Append the domain name to the +name+ field if missing
Append the domain name to the + name + field if missing