presidentbeef/brakeman — pull request #97 by presidentbeef (2012-06-05 15:24:24+00:00)
Title: Do not warn on redirects to model instances

Per #96, Brakeman should not warn when redirecting to model instances. This was already sort of in CheckRedirect, but it only looked for `Model.new`, when most model instances are probably the result of a query method.

These changes also change the confidence of redirecting to model attributes from weak to high (e.g., `redirect_to User.find(params[:id]).cool_blog_url`).