# File lib/brakeman/checks/check_sql.rb, line 685 def connect_call? result call = result[:call] target = call.target if call? target and target.method == :connection target = target.target klass = class_name(target) target.nil? or target == SELF_CLASS or node_type? target, :self or klass == "ActiveRecord::Base""ActiveRecord::Base" or active_record_models.include? klass end end