diff --git a/lib/application_checker.rb b/lib/application_checker.rb index c17f1c5..aac6a00 100644 --- a/lib/application_checker.rb +++ b/lib/application_checker.rb @@ -23,7 +23,7 @@ module Rails # Check for deprecated ActiveRecord calls def check_ar_methods files = [] - ["find(:all", "find(:first", ":conditions =>", ":joins =>"].each do |v| + ["find(:all", "find(:first", "find.*:conditions =>", ":joins =>"].each do |v| lines = grep_for(v, "app/") files += extract_filenames(lines) || [] end