Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-31 16:59:06 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-31 16:59:06 +0400
commit25924a9089ae813fe9ec8697f6bd3798377d60fb (patch)
tree96087448bd94dfab93755ba8569bfcaee830b309 /app/mailers
parent8ee0993fdf783ad12823ff817cd531df0bc363eb (diff)
Email link https support
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/notify.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 50ccb991a44..9c2cc7c5b29 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -1,5 +1,7 @@
class Notify < ActionMailer::Base
default_url_options[:host] = EMAIL_OPTS["host"]
+ default_url_options[:protocol] = -> { EMAIL_OPTS["protocol"] ? EMAIL_OPTS["protocol"] : "http" }.call
+
default from: EMAIL_OPTS["from"]
def new_user_email(user, password)