]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/action_mailer.rb
Update tests to ensure referer is working
[rails.git] / config / initializers / action_mailer.rb
index 6b27bb686fdd348f483e6aeb22ee48c19d0c81ee..32dfa79bbfea05f7de1396385727e8debec7baf8 100644 (file)
@@ -5,3 +5,9 @@ ActionMailer::Base.smtp_settings = {
   :domain => "localhost",
   :enable_starttls_auto => false
 }
+
+# Set the host and protocol for all ActionMailer URLs
+ActionMailer::Base.default_url_options = {
+  :host => Settings.server_url,
+  :protocol => Settings.server_protocol
+}