lib/brakeman/checks/check_mass_assignment.rb in brakeman-3.1.2 vs lib/brakeman/checks/check_mass_assignment.rb in brakeman-3.1.3

- old
+ new

@@ -153,10 +153,10 @@ end # Look for and warn about uses of Parameters#permit! for mass assignment def check_permit! tracker.find_call(:method => :permit!).each do |result| - if params? result[:target] + if params? result[:call].target warn_on_permit! result end end end