Skip to content
Browse files

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

  • Loading branch information...
1 parent 3d02195 commit 5f2f9b57c404f27f9519d1e5dfb972981181da66 @mhfs mhfs committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionmailer/lib/action_mailer/delivery_methods.rb
2 actionmailer/lib/action_mailer/delivery_methods.rb
@@ -65,7 +65,7 @@ def wrap_delivery_behavior(mail, method=nil) #:nodoc:
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"))
raise "Invalid delivery method #{method.inspect}"

0 comments on commit 5f2f9b5

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