mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added hook point in new base #send_action which does the actual action method dispatching
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user