lib/brakeman/processors/lib/rails3_route_processor.rb in brakeman-4.3.1 vs lib/brakeman/processors/lib/rails3_route_processor.rb in brakeman-4.4.0
- old
+ new
@@ -181,11 +181,9 @@
if route.length != 2
add_route route[0]
else
add_route route[1], route[0]
end
- elsif in_controller_block? and symbol? first_arg
- add_route first_arg
else hash? first_arg
hash_iterate first_arg do |k, v|
if string? k
if string? v
add_route_from_string v