mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use scoped.find directly rather than having a find_by_sql method
This commit is contained in:
@@ -32,7 +32,7 @@ module ActiveRecord
|
||||
if @reflection.options[:finder_sql]
|
||||
find_by_scan(*args)
|
||||
else
|
||||
find_by_sql(*args)
|
||||
scoped.find(*args)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -560,10 +560,6 @@ module ActiveRecord
|
||||
load_target.select { |r| ids.include?(r.id) }
|
||||
end
|
||||
end
|
||||
|
||||
def find_by_sql(*args)
|
||||
scoped.find(*args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user