fix source indent of app/models/mailer.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19932 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-07-21 13:41:16 +00:00
parent 4df233e947
commit 616765b5e4

View File

@ -58,9 +58,11 @@ class Mailer < ActionMailer::Base
options = {:protocol => Setting.protocol}
if Setting.host_name.to_s =~ /\A(https?\:\/\/)?(.+?)(\:(\d+))?(\/.+)?\z/i
host, port, prefix = $2, $4, $5
options.merge!({
:host => host, :port => port, :script_name => prefix
})
options.merge!(
{
:host => host, :port => port, :script_name => prefix
}
)
else
options[:host] = Setting.host_name
end