Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

one.
  • Loading branch information...
commit 5f2f9b57c404f27f9519d1e5dfb972981181da66 1 parent 3d02195
@mhfs mhfs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionmailer/lib/action_mailer/delivery_methods.rb
View
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"))
else
raise "Invalid delivery method #{method.inspect}"
Please sign in to comment.
Something went wrong with that request. Please try again.