diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 00:45:52 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-11-08 00:45:52 +0000 |
commit | 674a62b728ac237458cd2a46b27b2c0f22db3cac (patch) | |
tree | a947a1285f8bc47b800d2d5497e43c5811478fde /app | |
parent | f7a6cf8d1b933c8c8b3de272598805a88f957822 (diff) | |
download | redmine-674a62b728ac237458cd2a46b27b2c0f22db3cac.tar.gz redmine-674a62b728ac237458cd2a46b27b2c0f22db3cac.zip |
cleanup: rubocop: fix Layout/AlignArguments in app/models/mailer.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18934 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/mailer.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 48bf0eed4..ed923ae68 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -421,7 +421,8 @@ class Mailer < ActionMailer::Base # TODO: maybe not the best way to handle this return if user.admin? && user.login == 'admin' && user.mail == 'admin@example.net' - deliver_security_notification(user, + deliver_security_notification( + user, sender, message: :mail_body_password_updated, title: :button_change_password, @@ -458,10 +459,10 @@ class Mailer < ActionMailer::Base def security_notification(user, sender, options={}) @sender = sender redmine_headers 'Sender' => sender.login - @message = l(options[:message], - field: (options[:field] && l(options[:field])), - value: options[:value] - ) + @message = + l(options[:message], + field: (options[:field] && l(options[:field])), + value: options[:value]) @title = options[:title] && l(options[:title]) @remote_ip = options[:remote_ip] || @sender.remote_ip @url = options[:url] && (options[:url].is_a?(Hash) ? url_for(options[:url]) : options[:url]) |