Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dry up method missing

  • Loading branch information...
commit 4d7b2ee52481078228ac0283024a72b7d80a39db 1 parent 1d9a219
@tenderlove tenderlove authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 actionmailer/lib/action_mailer/base.rb
View
7 actionmailer/lib/action_mailer/base.rb
@@ -421,11 +421,8 @@ def set_payload_for_mail(payload, mail) #:nodoc:
end
def method_missing(method, *args) #:nodoc:
- if action_methods.include?(method.to_s)
- new(method, *args).message
- else
- super
- end
+ return super unless respond_to?(method)
+ new(method, *args).message
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.