added dmail test

This commit is contained in:
albert
2010-02-20 18:08:22 -05:00
parent 1a7197807a
commit 0bb52fd63a
13 changed files with 483 additions and 1 deletions

View File

@@ -10,6 +10,11 @@ module Danbooru
"Danbooru"
end
# Contact email address of the admin.
def contact_email
"webmaster#{server_host}"
end
# Stripped of any special characters.
def safe_app_name
app_name.gsub(/[^a-zA-Z0-9_-]/, "_")