From d8207adb5f59693e7c00fb17dc9a28fd10a8c1a0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 25 Nov 2004 23:51:46 +0000 Subject: Added the opportunity to defined method_missing on a controller which will handle all requests for actions not otherwise defined #223 [timb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@15 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 0cbcbbf688..4816ef7f71 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -599,7 +599,7 @@ module ActionController #:nodoc: end def perform_action - if action_methods.include?(action_name) + if action_methods.include?(action_name) || action_methods.include?('method_missing') send(action_name) render unless @performed_render || @performed_redirect elsif template_exists? && template_public? -- cgit v1.2.3