1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-20 15:31:12 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-24 16:44:29 +00:00
parent bd63d3bc71
commit 3bd37fef40

View File

@ -487,7 +487,7 @@ class Mailer < ActionMailer::Base
def self.deliver_security_notification(users, sender, options={}) def self.deliver_security_notification(users, sender, options={})
# Symbols cannot be serialized: # Symbols cannot be serialized:
# ActiveJob::SerializationError: Unsupported argument type: Symbol # 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 # sender's remote_ip would be lost on serialization/deserialization
# we have to pass it with options # we have to pass it with options
options[:remote_ip] ||= sender.remote_ip options[:remote_ip] ||= sender.remote_ip