incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1049036 - /incubator/alois/trunk/rails/app/models/base_mailer.rb
Date Tue, 14 Dec 2010 10:55:51 GMT
Author: flavio
Date: Tue Dec 14 10:55:51 2010
New Revision: 1049036

URL: http://svn.apache.org/viewvc?rev=1049036&view=rev
Log:
Base mailer now knows the alois prefix, corrected default_url host.

Modified:
    incubator/alois/trunk/rails/app/models/base_mailer.rb

Modified: incubator/alois/trunk/rails/app/models/base_mailer.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/rails/app/models/base_mailer.rb?rev=1049036&r1=1049035&r2=1049036&view=diff
==============================================================================
--- incubator/alois/trunk/rails/app/models/base_mailer.rb (original)
+++ incubator/alois/trunk/rails/app/models/base_mailer.rb Tue Dec 14 10:55:51 2010
@@ -220,7 +220,7 @@ class BaseMailer < ActionMailer::Base
   def initialize(method_name=nil, *parameters)
     ActionMailer::Base.smtp_settings[:address] = BaseMailer.smtp_server
 
-    if $root_url =~ /^(.*):\/\/(.*[^\/])\/?$/
+    if  $root_url =~ /^(.*):\/\/([^\/]+)/
       ActionMailer::Base.default_url_options[:protocol] = $1
       ActionMailer::Base.default_url_options[:host] = $2
     else



Mime
View raw message