From 94294bc8ed02774eefc2ef8a5a86ca05b49713d9 Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Mon, 5 Dec 2011 15:53:03 -0800 Subject: [PATCH] Add resources to resource even if given hash --- lib/brakeman/processors/lib/rails3_route_processor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/brakeman/processors/lib/rails3_route_processor.rb b/lib/brakeman/processors/lib/rails3_route_processor.rb index 65146fe8..65dec670 100644 --- a/lib/brakeman/processors/lib/rails3_route_processor.rb +++ b/lib/brakeman/processors/lib/rails3_route_processor.rb @@ -164,6 +164,7 @@ class Brakeman::Rails3RoutesProcessor < Brakeman::BaseProcessor if exp[3] and exp[3][2] and exp[3][2][0] == :hash self.current_controller = exp[3][1][1] #handle hash + add_resources_routes elsif exp[3][1..-1].all? { |s| symbol? s } exp[3][1..-1].each do |s| self.current_controller = s[1] -- GitLab