lib/rubocop/cop/performance/detect.rb in rubocop-performance-1.12.0 vs lib/rubocop/cop/performance/detect.rb in rubocop-performance-1.13.0

- old
+ new

@@ -25,13 +25,9 @@ # # # good # [].detect { |item| true } # [].reverse.detect { |item| true } # - # `ActiveRecord` compatibility: - # `ActiveRecord` does not implement a `detect` method and `find` has its - # own meaning. Correcting ActiveRecord methods with this cop should be - # considered unsafe. class Detect < Base extend AutoCorrector CANDIDATE_METHODS = Set[:select, :find_all, :filter].freeze