Browse Source

naming

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
344417e587
  1. 2
      app/models/record.rb
  2. 2
      app/models/soa.rb

2
app/models/record.rb

@ -24,7 +24,7 @@ class Record < ActiveRecord::Base
def shortname; name.gsub(/\.?#{self.domain.name}$/, '') end
def shortname=(value); self.name = value end
def to_label; content end
def to_label; "#{type} #{content}" end
protected

2
app/models/soa.rb

@ -58,6 +58,8 @@ class SOA < Record
save
end
def to_label; "#{type} #{primary_ns} #{contact}" end
private
def assemble_content

Loading…
Cancel
Save