mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
f3fd44f76b
commit
361aaa04ef
1 changed files with 1 additions and 1 deletions
|
@ -1272,7 +1272,7 @@ module ActiveRecord #:nodoc:
|
||||||
|
|
||||||
private
|
private
|
||||||
def find_initial(options)
|
def find_initial(options)
|
||||||
options.update(:limit => 1) unless options[:include]
|
options.update(:limit => 1)
|
||||||
find_every(options).first
|
find_every(options).first
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue