Permalink
Browse files

dry up method missing

  • Loading branch information...
1 parent 1d9a219 commit 4d7b2ee52481078228ac0283024a72b7d80a39db @tenderlove tenderlove committed Sep 29, 2010
Showing with 2 additions and 5 deletions.
  1. +2 −5 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

0 comments on commit 4d7b2ee

Please sign in to comment.