Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F906903
records_helper.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 30, 11:24 AM
Size
381 B
Mime Type
text/x-ruby
Expires
Mon, Sep 1, 11:24 AM (16 h, 8 m)
Engine
blob
Format
Raw Data
Handle
253704
Attached To
rWEBDNS WebDNS (edet4)
records_helper.rb
View Options
module
RecordsHelper
# Smart suffix for records
#
# On forward zones returns the zone name.
# On reverse zones returns the zone name but also tries to infer the subnet.
#
# Returns a smart suffix string.
def
name_field_append
(
record
)
return
".
#{
record
.
domain
.
name
}
"
if
not
record
.
domain
.
reverse?
".
#{
record
.
domain
.
name
}
(
#{
record
.
domain
.
subnet
}
)"
end
end
Event Timeline
Log In to Comment