Commit 831c00634fe568f9c9ef622c7710b1235ae65ad6
Exists in
master
and in
1 other branch
Merge pull request #386 from Nix-wie-weg/ssl-mail-links
Set protocol https if enforce SSL connections configured
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
config/initializers/ssl_enforcer.rb
1 | -# | ||
2 | # Enforce SSL connections, if configured | 1 | # Enforce SSL connections, if configured |
3 | if Errbit::Config.enforce_ssl | 2 | if Errbit::Config.enforce_ssl |
3 | + ActionMailer::Base.default_url_options.merge!(:protocol => 'https://') | ||
4 | Errbit::Application.configure do | 4 | Errbit::Application.configure do |
5 | config.middleware.use Rack::SslEnforcer, :except => /^\/deploys/ | 5 | config.middleware.use Rack::SslEnforcer, :except => /^\/deploys/ |
6 | end | 6 | end |