提交 e96ababb 编写于 作者: J Justin

Support Rails 3 partial render (no :partial => ...)

`render 'blah'` apparently noew renders the partial '_blah'
上级 759856c6
......@@ -235,8 +235,13 @@ class Brakeman::BaseProcessor < SexpProcessor
#Look for render :action, ... or render "action", ...
if string? args[1] or symbol? args[1]
type = :action
value = args[1]
if @current_template and @tracker.options[:rails3]
type = :partial
value = args[1]
else
type = :action
value = args[1]
end
elsif args[1].is_a? Symbol or args[1].is_a? String
type = :action
value = Sexp.new(:lit, args[1].to_sym)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册