Skip to content

Commit

Permalink
Avoid duplicate warnings about Ransack
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Oct 26, 2023
1 parent 9d36b2e commit be51b98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/brakeman/checks/check_ransack.rb
Original file line number Diff line number Diff line change
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 be51b98

Please sign in to comment.