try to only catch conditions when a find is involved
This commit is contained in:
parent
ca96342054
commit
4ce16b80b7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue