# File lib/brakeman/rescanner.rb, line 180 def rescan_model path num_models = tracker.models.length model = tracker.reset_model path paths = model.nil? ? [path] : model.files parse_ruby_files(paths).each do |astfile| process_model astfile.path, astfile.ast end #Only need to rescan other things if a model is added or removed if num_models != tracker.models.length process_template_data_flows process_controller_data_flows @reindex << :templates << :controllers end @reindex << :models end