提交 cdb7a847 编写于 作者: J Jorge Bejar

Avoid calling AD::MimeNegotiation#format_from_path_extension method twice

上级 3a94ced8
......@@ -67,8 +67,8 @@ def formats
v = if params_readable
Array(Mime[parameters[:format]])
elsif format_from_path_extension
[Mime[format_from_path_extension]]
elsif format = format_from_path_extension
Array(Mime[format])
elsif use_accept_header && valid_accept_header
accepts
elsif xhr?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册