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
|
# Check for deprecated ActiveRecord calls
|
||||||
def check_ar_methods
|
def check_ar_methods
|
||||||
files = []
|
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/")
|
lines = grep_for(v, "app/")
|
||||||
files += extract_filenames(lines) || []
|
files += extract_filenames(lines) || []
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user