lib/brakeman/processors/lib/rails3_route_processor.rb in brakeman-lib-4.5.0 vs lib/brakeman/processors/lib/rails3_route_processor.rb in brakeman-lib-4.5.1

- old
+ new

@@ -15,14 +15,14 @@ @nested = nil #used for identifying nested targets @prefix = [] #Controller name prefix (a module name, usually) @current_controller = nil @with_options = nil #For use inside map.with_options @controller_block = false - @file_name = "config/routes.rb" + @current_file = "config/routes.rb" end def process_routes exp - process Brakeman::AliasProcessor.new.process_safely(exp, nil, @file_name) + process Brakeman::AliasProcessor.new.process_safely(exp, nil, @current_file) end def process_call exp case exp.method when :resources