Modified: branches/rails2/app/views/mailer/account_confirmation.rhtml (2754 => 2755)
--- branches/rails2/app/views/mailer/account_confirmation.rhtml 2011-10-24 21:03:27 UTC (rev 2754)
+++ branches/rails2/app/views/mailer/account_confirmation.rhtml 2011-10-24 21:05:14 UTC (rev 2755)
@@ -9,6 +9,7 @@
<%= url_for : false,
:controller => 'users',
:action ="" 'confirm_email',
+ :host => Conf.hostname,
:hash => @hash %>
- The <%= Conf.sitename %> Team
Modified: branches/rails2/lib/conf.rb (2754 => 2755)
--- branches/rails2/lib/conf.rb 2011-10-24 21:03:27 UTC (rev 2754)
+++ branches/rails2/lib/conf.rb 2011-10-24 21:05:14 UTC (rev 2755)
@@ -49,6 +49,10 @@
end
end
+ def self.hostname
+ self.base_uri.sub(/https?:\/\//, '')
+ end
+
def self.admins
self.fetch_entry('admins')
end