Added hook point in new base #send_action which does the actual action method dispatching

This commit is contained in:
Yehuda Katz + Carl Lerche
2009-05-27 15:59:14 -07:00
parent a5688fa907
commit e70bd6bdfa
2 changed files with 4 additions and 2 deletions

View File

@@ -95,9 +95,11 @@ module AbstractController
# overrides it to include the case where a template matching the
# action_name is found.
def process_action(method_name)
send(method_name)
send_action(method_name)
end
alias send_action send
def _handle_action_missing
action_missing(@_action_name)
end

View File

@@ -39,7 +39,7 @@ module ActionController
# TODO: Extract into its own module
# This should be moved together with other normalizing behavior
module ImplicitRender
def process_action(method_name)
def send_action(method_name)
ret = super
default_render unless performed?
ret