提交 afea4c9b 编写于 作者: P Pratik Naik

Remove double layout check

上级 83c6ba18
......@@ -897,12 +897,7 @@ def render(options = nil, extra_options = {}, &block) #:doc:
render_for_text(@template.render(options), options[:status])
elsif action_name = options[:action]
template = default_template_name(action_name.to_s)
if options[:layout] && !template_exempt_from_layout?(template)
render_with_a_layout(:file => template, :status => options[:status], :layout => true)
else
render_with_no_layout(:file => template, :status => options[:status])
end
render_for_file(default_template_name(action_name.to_s), options[:status], nil, options[:locals] || {})
elsif xml = options[:xml]
response.content_type ||= Mime::XML
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册