Skip to content
This repository
Browse code

No need to force conversion to Symbol since case ensures it's already

one.
  • Loading branch information...
commit 5f2f9b57c404f27f9519d1e5dfb972981181da66 1 parent 3d02195
Marcelo Silveira authored May 03, 2012
2  actionmailer/lib/action_mailer/delivery_methods.rb
@@ -65,7 +65,7 @@ def wrap_delivery_behavior(mail, method=nil) #:nodoc:
65 65
         when NilClass
66 66
           raise "Delivery method cannot be nil"
67 67
         when Symbol
68  
-          if klass = delivery_methods[method.to_sym]
  68
+          if klass = delivery_methods[method]
69 69
             mail.delivery_method(klass, send(:"#{method}_settings"))
70 70
           else
71 71
             raise "Invalid delivery method #{method.inspect}"

0 notes on commit 5f2f9b5

Please sign in to comment.
Something went wrong with that request. Please try again.