mirror of https://github.com/rails/rails
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:
parent
7ed0894c37
commit
d8207adb5f
|
@ -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]
|
||||
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue