提交 361aaa04 编写于 作者: A Aliaksey Kandratsenka 提交者: Michael Koziarski

Remove old :limit removal code from find_initial, logic is now handled in the...

Remove old :limit removal code from find_initial, logic is now handled in the preloading and eager loading code.
Signed-off-by: NMichael Koziarski <michael@koziarski.com>
上级 f3fd44f7
......@@ -1272,7 +1272,7 @@ def respond_to?(method_id, include_private = false)
private
def find_initial(options)
options.update(:limit => 1) unless options[:include]
options.update(:limit => 1)
find_every(options).first
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册