From 4ce16b80b717875480be8bc9f132c8da7d6ad48d Mon Sep 17 00:00:00 2001 From: Jack Dempsey Date: Thu, 4 Feb 2010 23:27:37 +0800 Subject: [PATCH] try to only catch conditions when a find is involved --- lib/application_checker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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