Remove args from `default_render`

It's always called with 0 params, so just remove the parameter
上级 e1fe21f6
......@@ -6,7 +6,7 @@ def send_action(method, *args)
super.tap { default_render unless performed? }
end
def default_render(*args)
def default_render
head :no_content
end
end
......
......@@ -30,9 +30,9 @@ module ImplicitRender
# :stopdoc:
include BasicImplicitRender
def default_render(*args)
def default_render
if template_exists?(action_name.to_s, _prefixes, variants: request.variant)
render(*args)
render
elsif any_templates?(action_name.to_s, _prefixes)
message = "#{self.class.name}\##{action_name} is missing a template " \
"for this request format and variant.\n" \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册