Skip to content
This repository
Browse code

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
  • Loading branch information...
commit d8207adb5f59693e7c00fb17dc9a28fd10a8c1a0 1 parent 7ed0894
David Heinemeier Hansson authored
4  actionpack/CHANGELOG
... ...
@@ -1,4 +1,6 @@
1  
-*CVS*
  1
+*SVN*
  2
+
  3
+* Added the opportunity to defined method_missing on a controller which will handle all requests for actions not otherwise defined #223 [timb]
2 4
 
3 5
 * Fixed AbstractRequest#remote_ip for users going through proxies - Patch #228 [Eric Hodel]
4 6
 
2  actionpack/lib/action_controller/base.rb
@@ -599,7 +599,7 @@ def log_processing
599 599
       end
600 600
     
601 601
       def perform_action
602  
-        if action_methods.include?(action_name)
  602
+        if action_methods.include?(action_name) || action_methods.include?('method_missing')
603 603
           send(action_name)
604 604
           render unless @performed_render || @performed_redirect
605 605
         elsif template_exists? && template_public?

0 notes on commit d8207ad

Please sign in to comment.
Something went wrong with that request. Please try again.