Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not treat Model.arel_table as a model attribute

  • Loading branch information...
commit ed5223a57e2cac7c20dd57456f5737263f7b30db 1 parent 92dc97c
Justin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/brakeman/checks/base_check.rb
2  lib/brakeman/checks/base_check.rb
View
@@ -320,7 +320,7 @@ def has_immediate_model? exp, out = nil
if call? target and not method.to_s[-1,1] == "?"
has_immediate_model? target, out
- elsif model_name? target
+ elsif model_name? target and method != :arel_table
exp
else
false
Please sign in to comment.
Something went wrong with that request. Please try again.