aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-07-26 04:00:56 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-07-26 04:04:51 +0900
commit64202abc3d15663776b29654e415c2708611e237 (patch)
tree50a1b00b7d1c6fdd8991ca19da8d7ca8d960f2fe /actionmailer/lib
parentfb97a7d87b296597892ca5282410d6e875bbc3b5 (diff)
downloadrails-64202abc3d15663776b29654e415c2708611e237.tar.gz
rails-64202abc3d15663776b29654e415c2708611e237.tar.bz2
rails-64202abc3d15663776b29654e415c2708611e237.zip
Don't mutate the Base settings by merge!ing the given value
Diffstat (limited to 'actionmailer/lib')
-rw-r--r--actionmailer/lib/action_mailer/delivery_methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/delivery_methods.rb b/actionmailer/lib/action_mailer/delivery_methods.rb
index 9a1a27c8ed..aedcd81e52 100644
--- a/actionmailer/lib/action_mailer/delivery_methods.rb
+++ b/actionmailer/lib/action_mailer/delivery_methods.rb
@@ -64,7 +64,7 @@ module ActionMailer
raise "Delivery method cannot be nil"
when Symbol
if klass = delivery_methods[method]
- mail.delivery_method(klass,(send(:"#{method}_settings") || {}).merge!(options || {}))
+ mail.delivery_method(klass, (send(:"#{method}_settings") || {}).merge(options || {}))
else
raise "Invalid delivery method #{method.inspect}"
end