From 674a62b728ac237458cd2a46b27b2c0f22db3cac Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 8 Nov 2019 00:45:52 +0000 Subject: [PATCH] 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 --- app/models/mailer.rb | 11 ++++++----- 1 file 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]) -- 2.39.5