mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Instead of doing find(:all) which does scoped.find(:all) which does scoped.all, just do scoped.all.
This commit is contained in:
@@ -379,7 +379,7 @@ module ActiveRecord
|
||||
if options[:finder_sql]
|
||||
reflection.klass.find_by_sql(custom_finder_sql)
|
||||
else
|
||||
find(:all)
|
||||
scoped.all
|
||||
end
|
||||
|
||||
records = options[:uniq] ? uniq(records) : records
|
||||
|
||||
Reference in New Issue
Block a user