presidentbeef/brakeman — pull request #109 by presidentbeef (2012-06-21 23:50:38+00:00)
Title: Avoid warning on Non-ActiveRecord Models

As noted in #107, models that do not inherit from `ActiveRecord::Base` should be ignored for some checks.

This adds a method to `BaseCheck` that returns just the models that inherit from `ActiveRecord::Base`. (In Rails 4 this will probably need to also check for models that include `ActiveRecord::Base`.

Several checks were updated to use this new method, including `CheckSQL`, which should help avoid some false positives.