Skip to content

Commit

Permalink
Merge pull request #1803 from presidentbeef/ransack_dupes
Browse files Browse the repository at this point in the history
Avoid duplicate warnings about Ransack
  • Loading branch information
presidentbeef committed Oct 26, 2023
2 parents 9d36b2e + be51b98 commit 391f530
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/brakeman/checks/check_ransack.rb
Expand Up @@ -12,6 +12,8 @@ def run_check

def check_ransack_calls
tracker.find_call(method: :ransack, nested: true).each do |result|
next unless original? result

call = result[:call]
arg = call.first_arg

Expand Down

0 comments on commit 391f530

Please sign in to comment.