myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2755] branches/rails2: added :host to account co


From: noreply
Subject: [myexperiment-hackers] [2755] branches/rails2: added :host to account confirmation email call
Date: Mon, 24 Oct 2011 17:05:14 -0400 (EDT)

Revision
2755
Author
dgc
Date
2011-10-24 17:05:14 -0400 (Mon, 24 Oct 2011)

Log Message

added :host to account confirmation email call

Modified Paths

Diff

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]