提交 5af6d517 编写于 作者: J Justin Collins

Merge branch 'master' of github.com:presidentbeef/brakeman

......@@ -106,7 +106,7 @@ class Brakeman::CallIndex
def index_calls calls
calls.each do |call|
@methods << call[:method].to_s
@targets << call[:target].to_s
@targets << call[:target].to_s if call[:target].is_a? Symbol
@calls_by_method[call[:method]] << call
@calls_by_target[call[:target]] << call
end
......@@ -138,7 +138,7 @@ class Brakeman::CallIndex
elsif targets.length > 1
calls_by_targets targets
else
calls_by_target[targets.first]
@calls_by_target[targets.first]
end
else
@calls_by_target[target]
......
......@@ -112,7 +112,8 @@ class Brakeman::Rails2RoutesProcessor < Brakeman::BaseProcessor
hash_iterate(exp) do |option, value|
case option[1]
when :controller, :requirements, :singular, :path_prefix, :as,
:path_names, :shallow, :name_prefix, :member_path, :nested_member_path
:path_names, :shallow, :name_prefix, :member_path, :nested_member_path,
:belongs_to, :conditions, :active_scaffold
#should be able to skip
when :collection, :member, :new
process_collection value
......@@ -129,7 +130,7 @@ class Brakeman::Rails2RoutesProcessor < Brakeman::BaseProcessor
when :except
process_option_except value
else
Brakeman.notify "[Notice] Unhandled resource option: #{option}"
Brakeman.notify "[Notice] Unhandled resource option, please report: #{option}"
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册