Email link https support

This commit is contained in:
Dmitriy Zaporozhets 2012-03-31 15:59:06 +03:00
parent 8ee0993fdf
commit 25924a9089
2 changed files with 6 additions and 0 deletions

View file

@ -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)