From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:44:29 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in app/models/mailer.rb X-Git-Tag: 4.2.0~1372 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3bd37fef40766c06960a45f0550ca99e2cf8bd3c;p=redmine.git 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 --- 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