lib/brakeman/checks/check_validation_regex.rb in brakeman-1.6.2 vs lib/brakeman/checks/check_validation_regex.rb in brakeman-1.7.0

- old
+ new

@@ -13,10 +13,10 @@ @description = "Report uses of validates_format_of with improper anchors" WITH = Sexp.new(:lit, :with) def run_check - tracker.models.each do |name, model| + active_record_models.each do |name, model| @current_model = name format_validations = model[:options][:validates_format_of] if format_validations format_validations.each do |v| process_validator v