Skip to content

Commit

Permalink
* added host information
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Jan 13, 2009
1 parent 8e2c1f3 commit 4483286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/models/notify.rb
@@ -1,5 +1,6 @@
class Notify < ActionMailer::Base
FROM_ADDRESS = "test.otherinbox@gmail.com"
HOST = "http://backup.nitroleague.com"

def success(email, backup)
setup_mail( email )
Expand Down
2 changes: 1 addition & 1 deletion app/views/notify/success.text.html.erb
@@ -1,2 +1,2 @@
<p>Hello,</p>
<p>Your backups are now available and can be accessed here: <%= link_to 'download', "http://localhost:3000/download/#{@backup}" %></li>
<p>Your backups are now available and can be accessed here: <%= link_to 'download', "#{HOST}/download/#{@backup}" %></li>
2 changes: 1 addition & 1 deletion app/views/notify/success.text.plain.erb
@@ -1,2 +1,2 @@
Hello,
Your backups are now available and can be accessed here: http://localhost:3000/download/<%= @backup %>
Your backups are now available and can be accessed here: <%= HOST %>/download/<%= @backup %>

0 comments on commit 4483286

Please sign in to comment.