]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsideBlockBraces in app/models/mailer.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:44:29 +0000 (16:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:44:29 +0000 (16:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19268 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/mailer.rb

index cb2c9f39e7f42a7efe461deed663d8969556dc19..8253bccf10edd5fc3600e5065c32c768197483bf 100644 (file)
@@ -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