提交 e6425f6e 编写于 作者: A Aaron Patterson

Remove useless conditional

If the response method is defined, then calling `response` will return a
response.
上级 446b6855
......@@ -118,7 +118,7 @@ def _set_content_type(type) # :nodoc:
def _normalize_render(*args, &block)
options = _normalize_args(*args, &block)
#TODO: remove defined? when we restore AP <=> AV dependency
if defined?(request) && request && request.variant.present?
if defined?(request) && request.variant.present?
options[:variant] = request.variant
end
_normalize_options(options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册