diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 15:07:33 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-29 15:07:33 -0700 |
commit | 4d7b2ee52481078228ac0283024a72b7d80a39db (patch) | |
tree | ad71c16684108d626ce60609a09e3854d5c21833 | |
parent | 1d9a219307ec5cc506635ee0bd3d368955d5b4a6 (diff) | |
download | rails-4d7b2ee52481078228ac0283024a72b7d80a39db.tar.gz rails-4d7b2ee52481078228ac0283024a72b7d80a39db.tar.bz2 rails-4d7b2ee52481078228ac0283024a72b7d80a39db.zip |
dry up method missing
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 6ae3940e6d..2901add71d 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -421,11 +421,8 @@ module ActionMailer #: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 |