From 3bd37fef40766c06960a45f0550ca99e2cf8bd3c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:44:29 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in app/models/mailer.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19268 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index cb2c9f39e..8253bccf1 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -487,7 +487,7 @@ class Mailer < ActionMailer::Base def self.deliver_security_notification(users, sender, options={}) # Symbols cannot be serialized: # ActiveJob::SerializationError: Unsupported argument type: Symbol - options = options.transform_values {|v| v.is_a?(Symbol) ? v.to_s : v } + options = options.transform_values {|v| v.is_a?(Symbol) ? v.to_s : v} # sender's remote_ip would be lost on serialization/deserialization # we have to pass it with options options[:remote_ip] ||= sender.remote_ip -- 2.39.5