mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
Remove old :limit removal code from find_initial, logic is now handled in the preloading and eager loading code.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
This commit is contained in:
committed by
Michael Koziarski
parent
f3fd44f76b
commit
361aaa04ef
@@ -1272,7 +1272,7 @@ module ActiveRecord #:nodoc:
|
||||
|
||||
private
|
||||
def find_initial(options)
|
||||
options.update(:limit => 1) unless options[:include]
|
||||
options.update(:limit => 1)
|
||||
find_every(options).first
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user