# File lib/brakeman/processors/lib/rails3_route_processor.rb, line 202 def process_resources exp first_arg = exp.first_arg second_arg = exp.second_arg return exp unless symbol? first_arg or string? first_arg if second_arg and second_arg.node_type == :hash self.current_controller = first_arg.value #handle hash add_resources_routes elsif exp.args.all? { |s| symbol? s } exp.each_arg do |s| self.current_controller = s.value add_resources_routes end end @current_controller = nil unless in_controller_block? exp end