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
This commit is contained in:
David Heinemeier Hansson 2004-11-25 23:51:46 +00:00
parent 7ed0894c37
commit d8207adb5f
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
*CVS*
*SVN*
* Added the opportunity to defined method_missing on a controller which will handle all requests for actions not otherwise defined #223 [timb]
* Fixed AbstractRequest#remote_ip for users going through proxies - Patch #228 [Eric Hodel]

View File

@ -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?