summaryrefslogtreecommitdiff
path: root/app/mailers/notify.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-07-02 19:29:15 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-07-02 19:29:15 +0000
commitcaf5b9e5fa562cee2cca9cb484927a190b2bcf8a (patch)
tree84ba2564b6ba27dbb6c6649cf142c2848059582f /app/mailers/notify.rb
parentb3a0ee8e631c3e272c8ce3b60929192d3f7f1f22 (diff)
parent1d543e64300666e2abc5cc8562e6b55458878801 (diff)
downloadgitlab-ce-caf5b9e5fa562cee2cca9cb484927a190b2bcf8a.tar.gz
Merge branch 'feature/config' of dev.gitlabhq.com:gitlabhq
Diffstat (limited to 'app/mailers/notify.rb')
-rw-r--r--app/mailers/notify.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 05fd17b511a..37b442bce71 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -2,10 +2,10 @@ class Notify < ActionMailer::Base
include Resque::Mailer
add_template_helper ApplicationHelper
- default_url_options[:host] = EMAIL_OPTS["host"]
- default_url_options[:protocol] = -> { EMAIL_OPTS["protocol"] ? EMAIL_OPTS["protocol"] : "http" }.call
+ default_url_options[:host] = Gitlab.config.web_host
+ default_url_options[:protocol] = Gitlab.config.web_protocol
- default from: EMAIL_OPTS["from"]
+ default from: Gitlab.config.email_from
def new_user_email(user_id, password)
@user = User.find(user_id)