Permalink
Browse files

* fixed host bug on notify

  • Loading branch information...
1 parent 2c4bdd8 commit 4fc4623f0845367cc651a9ee576056aca0e54e12 @hone committed Jan 13, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −0 app/models/notify.rb
  2. +1 −1 app/views/notify/success.text.html.erb
  3. +1 −1 app/views/notify/success.text.plain.erb
View
1 app/models/notify.rb
@@ -8,6 +8,7 @@ def success(email, backup)
body[:email] = email
body[:backup] = backup
+ body[:host] = HOST
end
def authentication_problem(email)
View
2 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', "#{HOST}/download/#{@backup}" %></li>
+<p>Your backups are now available and can be accessed here: <%= link_to 'download', "#{@host}/download/#{@backup}" %></li>
View
2 app/views/notify/success.text.plain.erb
@@ -1,2 +1,2 @@
Hello,
-Your backups are now available and can be accessed here: <%= HOST %>/download/<%= @backup %>
+Your backups are now available and can be accessed here: <%= @host %>/download/<%= @backup %>

0 comments on commit 4fc4623

Please sign in to comment.