Skip to content

Commit

Permalink
Added the opportunity to defined method_missing on a controller which…
Browse files Browse the repository at this point in the history
… will handle all requests for actions not otherwise defined rails#223 [timb]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@15 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Nov 25, 2004
1 parent 7ed0894 commit d8207ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion actionpack/CHANGELOG
@@ -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]

Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/base.rb
Expand Up @@ -599,7 +599,7 @@ def log_processing
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?
Expand Down

0 comments on commit d8207ad

Please sign in to comment.