diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-07-26 04:00:56 +0900 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-09-10 18:10:48 +0200 |
commit | 0c93a48904bcededd6093138ed81f3c13ac5e63f (patch) | |
tree | 8431a556281de17eb4368e2e24cf453767d65a58 /actionmailer/lib | |
parent | 05f88b7b0499781f87e9e79cbec4d01193db2352 (diff) | |
download | rails-0c93a48904bcededd6093138ed81f3c13ac5e63f.tar.gz rails-0c93a48904bcededd6093138ed81f3c13ac5e63f.tar.bz2 rails-0c93a48904bcededd6093138ed81f3c13ac5e63f.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.rb | 2 |
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 |