diff options
-rw-r--r-- | app/models/mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |