mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
19 lines
377 B
Ruby
19 lines
377 B
Ruby
module ActionController
|
|
module ImplicitRender
|
|
def send_action(method, *args)
|
|
ret = super
|
|
default_render unless response_body
|
|
ret
|
|
end
|
|
|
|
def default_render(*args)
|
|
render(*args)
|
|
end
|
|
|
|
def method_for_action(action_name)
|
|
super || if template_exists?(action_name.to_s, _prefixes)
|
|
"default_render"
|
|
end
|
|
end
|
|
end
|
|
end
|