aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2012-05-03 05:26:39 -0700
committerJosé Valim <jose.valim@gmail.com>2012-05-03 05:26:39 -0700
commit54174b5f4d24115bf1d005f7073041654da27f5f (patch)
treec398ef2bc6f26cda0a116a2128286d32068f9dd1 /actionmailer
parentab7b5501c66336a5c67946cc18db7cc2b377d071 (diff)
parent5f2f9b57c404f27f9519d1e5dfb972981181da66 (diff)
downloadrails-54174b5f4d24115bf1d005f7073041654da27f5f.tar.gz
rails-54174b5f4d24115bf1d005f7073041654da27f5f.tar.bz2
rails-54174b5f4d24115bf1d005f7073041654da27f5f.zip
Merge pull request #6141 from mhfs/mailer_tweeks
Minor ActionMailer tweaks
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/delivery_methods.rb2
-rw-r--r--actionmailer/test/abstract_unit.rb14
2 files changed, 2 insertions, 14 deletions
diff --git a/actionmailer/lib/action_mailer/delivery_methods.rb b/actionmailer/lib/action_mailer/delivery_methods.rb
index d1467fb526..3b38dbccc7 100644
--- a/actionmailer/lib/action_mailer/delivery_methods.rb
+++ b/actionmailer/lib/action_mailer/delivery_methods.rb
@@ -65,7 +65,7 @@ module ActionMailer
when NilClass
raise "Delivery method cannot be nil"
when Symbol
- if klass = delivery_methods[method.to_sym]
+ if klass = delivery_methods[method]
mail.delivery_method(klass, send(:"#{method}_settings"))
else
raise "Invalid delivery method #{method.inspect}"
diff --git a/actionmailer/test/abstract_unit.rb b/actionmailer/test/abstract_unit.rb
index 3a519253f9..487102b564 100644
--- a/actionmailer/test/abstract_unit.rb
+++ b/actionmailer/test/abstract_unit.rb
@@ -1,16 +1,4 @@
-# Pathname has a warning, so require it first while silencing
-# warnings to shut it up.
-#
-# Also, in 1.9, Bundler creates warnings due to overriding
-# Rubygems methods
-begin
- old, $VERBOSE = $VERBOSE, nil
- require 'pathname'
- require File.expand_path('../../../load_paths', __FILE__)
-ensure
- $VERBOSE = old
-end
-
+require File.expand_path('../../../load_paths', __FILE__)
require 'active_support/core_ext/kernel/reporting'
# These are the normal settings that will be set up by Railties