Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1300549
ptr.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
Wed, Nov 19, 2:18 PM
Size
340 B
Mime Type
text/x-ruby
Expires
Fri, Nov 21, 2:18 PM (4 h, 4 m)
Engine
blob
Format
Raw Data
Handle
292614
Attached To
rWEBDNS WebDNS (edet4)
ptr.rb
View Options
class
PTR
<
Record
validates
:content
,
presence
:
true
,
hostname
:
true
validate
:no_trailing_dot
before_validation
:remove_terminating_dot
def
no_trailing_dot
# Do not allow PTR record names that end with a dot
return
if
!
short
.
end_with?
(
"."
)
errors
.
add
(
:name
,
"PTR record name should not end with a dot"
)
end
end
Event Timeline
Log In to Comment